Fast factoring algorithms?

Viewed 13524

How can I quickly find all factors of a number?

e.g.:

digit: 20
factors: {1*20, 2*10, 4*5, 5*4, 10*2, 20*1}

7 Answers
Related