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 
$

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/725367

Title:
  primes returns composites

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdgames/+bug/725367/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to