In the specific case of %@eval[65537 ** 2] you'll get the wrong answer if you don't test all the way up to (and including) its square root (because 65537 is prime).
Specifically for 4295098369. If TCC only checked numbers less than SQRT(4295098369) = 65537, it would find no factors (because 65537 has no proper factors).
I'm pretty sure that yours is the correct explanation for the false negatives for numbers above 2^63. TCC is interpreting them as negative numbers, and therefore not prime.
On an even more trivial note: @ISPRIME in older versions of TCC returned 1 for values of n=0 and n=1. Now it's returning 0. Why would Rex bother? Somebody must have complained.... And it wasn't me....
On an even more trivial note: @ISPRIME in older versions of TCC returned 1 for values of n=0 and n=1. Now it's returning 0. Why would Rex bother? Somebody must have complained.... And it wasn't me....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.