Proper divisors: Difference between revisions

Content added Content deleted
(→‎version 3: optimized the Pdivs function.)
m (→‎version 3: added comments in the REXX section header about speed improvements.)
Line 1,679: Line 1,679:


===version 3===
===version 3===
This REXX version is over 12% faster than the REXX version 2   (more so when specifying larger numbers).
When factoring   20,000 integers, this REXX version is over 12% faster than the REXX version 2.
<br>When factoring 200,000 integers, this REXX version is over 25% faster.


It accomplishes a faster speed by incorporating the calculation of an &nbsp; ''integer square root'' &nbsp; of an integer &nbsp; (without using any floating point arithmetic).
It accomplishes a faster speed by incorporating the calculation of an &nbsp; ''integer square root'' &nbsp; of an integer &nbsp; (without using any floating point arithmetic).