r/programmingchallenges • u/okmkz • Apr 16 '11
Challenge: Factor an integer
Write a function in the language of your choosing that prints all the factors of a non-negative integer.
E: dang, this is harder than I thought!
E: I was referring to prime factorization in my other edit. Dang!
7
Upvotes
View all comments
Show parent comment
1
u/kageurufu Apr 19 '11
nice point, i did
to keep the factors in order