DEV Community

csm-yujinkim
csm-yujinkim

Posted on

[Code Snippet] Printing prime factors of a number. Demo included.

Print all prime factors of a number without duplication. In this example, each factor is printed in each successive line. The included demo provides examples for numbers [2-31].

Discussion (0)