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