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

Implementation of wheel factorization. #526

Closed
wants to merge 1 commit into from

Conversation

avadov
Copy link
Contributor

@avadov avadov commented Nov 29, 2023

Also, it fixes the bug of skipping the first two numbers after n. For example, in the previous version:

galois.next_prime(100000034)
100000037

galois.next_prime(100000035)
100000039

galois.next_prime(100000036)
100000039

galois.next_prime(100000037)
100000049

Also, it fixes the bug of skipping the first two numbers after n. For example, in the previous version:

>>> galois.next_prime(100000034)
100000037

>>> galois.next_prime(100000035)
100000039

>>> galois.next_prime(100000036)
100000039

>>> galois.next_prime(100000037)
100000049
@mhostetter
Copy link
Owner

Thanks for this! Can you rebase off of release/0.3.x? That should pass the unit tests.

@mhostetter
Copy link
Owner

Closing since their is a new one in #527

@mhostetter mhostetter closed this Dec 1, 2023
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

Successfully merging this pull request may close these issues.

2 participants