Quote:
Originally Posted by Citrix
Assume that p1%720=20
Then I want to look at ar[101], since the values in the array are 2,4,6,8... ie they start at 2. So the ar[9]=20.

What if (p1)%720 = 0? Then ar[01] is junk.
Quote:
Is there anything else that could be going wrong? Are you sure returning j=0 causes the prime to be skipped.

setup64() is called like this from prime_sieve() (in primes.c):
Code:
cc = setup64(p);
if (cc > 0)
bsgs64(p,cc);