Thank you for investigating and writing new code. I built the code from your repository trunk. primes32 might be correct, assuming you added only a test for the argument size. primes64 didn't work. 7757777775 is, by inspection, divisible by 5.
Thank you again, Dave Lambert
$ primes32 7757777773 7757777787 # good! argument '7757777773' incorrect at position 9 $ $ primes64 7757777773 7757777787 # no! start=7757777773, stop=7757777787, mode=0x0 q_min=3878888886, q_lim=3878888893 sqrt(7757777785)=88078 q_len=7, maxsp=88078 tmul=1, tdiv=255255, sres=8563 p_min=9, p_lim=44039, p_len=44030 sqrt(88078)=296 maxssp=296, si_min=9, si_lim=148 Primes::init _pmax=296 nssevs=55 cnt_d=0, cnt_m=44030 sdevs.size=8542 cnt_dd=0 7757777775 totally 1 primes with sum=7757777775:0 $
Thank you for investigating and writing new code. I built the code from
your repository trunk. primes32 might be correct, assuming you added
only a test for the argument size. primes64 didn't work. 7757777775
is, by inspection, divisible by 5.
Thank you again,
Dave Lambert
$ primes32 7757777773 7757777787 # good! )=88078
argument '7757777773' incorrect at position 9
$
$ primes64 7757777773 7757777787 # no!
start=7757777773, stop=7757777787, mode=0x0
q_min=3878888886, q_lim=3878888893
sqrt(7757777785
q_len=7, maxsp=88078
tmul=1, tdiv=255255, sres=8563
p_min=9, p_lim=44039, p_len=44030
sqrt(88078)=296
maxssp=296, si_min=9, si_lim=148
Primes::init _pmax=296
nssevs=55
cnt_d=0, cnt_m=44030
sdevs.size=8542
cnt_dd=0
7757777775
totally 1 primes with sum=7757777775:0
$