modifying primes.c

Paul Zimmermann Paul.Zimmermann at loria.fr
Fri Feb 3 10:40:04 CET 2006


> What  I want to do is set lower limit in primes.c to 10^90 and upper limit to 10^92 and accept only primes with last digit 7.
> 
> Could anyone please let me know how I can do that?
> 
> Thanks,
> Andy

No need to modify primes.c:

$ ./primes <10^90> <10^92> | grep '7$' | wc -l

where you <10^90> and <10^92> are replaced by corresponding values.
However I hope you have (at least) a quantum computer!


More information about the gmp-discuss mailing list