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

Definite primality verdict for small numbers #10

Open
fjarri opened this issue Jan 25, 2023 · 0 comments
Open

Definite primality verdict for small numbers #10

fjarri opened this issue Jan 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@fjarri
Copy link
Member

fjarri commented Jan 25, 2023

For small enough numbers (e.g. u64) we can have a definite verdict in the same time it takes to run the general BPSW probabilistic test. This may be a sequence of Miller-Rabin tests with predefined bases, or perhaps the Lucas-V test, given how few false positives it has, and the fact that it can be sped up (see #2).

@fjarri fjarri added the enhancement New feature or request label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant