Welcome to the Monastery | |
PerlMonks |
Finding all divisors of an integerby chiburashka (Initiate) |
on Jul 03, 2004 at 13:53 UTC ( [id://371576]=perlquestion: print w/replies, xml ) | Need Help?? |
chiburashka has asked for the wisdom of the Perl Monks concerning the following question:
is there a fast way to tell all the numbers that a spesific number divides on without leftovers (like for the spesific number "20" it divedes on 1,2,4,5,10,20 and stays as an integer) ?
How to find those "1,2,4,5,10,20" in the fastest way ?
that's my code :
now how to make it find those numbers FASTER ? 20040705 Edit by castaway: Changed title from 'Didision'
Back to
Seekers of Perl Wisdom
|
|