Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I think you are thinking of prime factorization here. You can stop there to determine primeness but not to determine all factors. You somehow miss the second line of my optimized solution. It adds the other half of the divisors. :-)
For every divisor above the square root, there is a corresponding divisor below the square root. Symmetrical optimization. :-)
print "Just another Perl ${\(trickster and hacker)},"
In reply to Re^3: Finding all divisors of an integer
by Sidhekin
|
|