is prime

Geoff Canyon gcanyon at inspiredlogic.com
Thu Dec 9 07:18:31 EST 2004


On Dec 8, 2004, at 10:39 AM, MisterX wrote:

>  put (x div 2) into xfactors

I haven't read through the rest carefully, but shouldn't this be 
trunc(sqrt(x))? You don't need to check for factors beyond the square 
root.

regards,

Geoff Canyon
gcanyon at inspiredlogic.com



More information about the metacard mailing list