Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve iprime.c #49

Open
lhf opened this issue Feb 10, 2021 · 0 comments
Open

improve iprime.c #49

lhf opened this issue Feb 10, 2021 · 0 comments

Comments

@lhf
Copy link

lhf commented Feb 10, 2021

You may want to improve the primality test in iprime.c by incorporating strong pseudoprime tests as in http://cvsweb.netbsd.org/bsdweb.cgi/%7echeckout%7e/src/games/primes/spsp.c

This works reliably for all 64-bit integers.

Unfortunately, this change won't avoid the need for the prime table in s_ptab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant