Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: Finding all divisors of an integerby Anonymous Monk |
on Jul 21, 2010 at 23:06 UTC ( [id://850738]=note: print w/replies, xml ) | Need Help?? |
If you multiply all the possible combinations of the prime factors together (and get rid of repeats), you get a list of all the factors, and the number itself.
I wonder how you multiply all the possible combinations of a list...
In Section
Seekers of Perl Wisdom
|
|