[Bug 725367] Re: primes returns composites

2012-02-14 Thread Alexander A. Maly
I wrote this fast implementation for PE problems as well, but mostly for SOLSTRAS challenge at spoj.pl. It is based on memoryless variant of the sieve of Eratosthenes (over priority queue). I heard that sieve of Atkins may be much faster, but cannot investigate it right now. A good test may be

[Bug 725367] Re: primes returns composites

2012-02-13 Thread Alexander A. Maly
Thank you for assistance! That seems to be output from an older version (before rev. 9) of the program. How get you the code? I tried bzr branch lp:primes/ from a clean place, built via make, run it as ./primes64 775773 775787 and it prints: start=775773, stop=775787,

[Bug 725367] Re: primes returns composites

2012-02-11 Thread Alexander A. Maly
Project https://launchpad.net/primes/ was designed to fix this issue. It contains primes32, that support only 32-bit numbers, and primes64, that supports 64-bit numbers. It is somewhat incompatible with the original primes program, as it, if only 1 argument x given, prints prime numbers from 0