Repository navigation
Move sieve optimization into the primality check - #48
Merged
Merged
Conversation
survived
force-pushed
the
optimize-primality-check
branch
from
October 16, 2026 07:50
4f01ce7 to
9f93f63
Compare
Contributor
|
I have a suspicion that crypto-primes does a constant-time primality check |
survived
force-pushed
the
optimize-primality-check
branch
3 times, most recently
from
October 16, 2026 10:27
29ea731 to
862d0bd
Compare
Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
survived
force-pushed
the
optimize-primality-check
branch
from
October 16, 2026 10:29
862d0bd to
59c6723
Compare
Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
survived
marked this pull request as ready for review
October 16, 2026 10:32
maurges
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Perf difference:
v0.3.2: 0.77-0.84s;m: 3.30-3.34s; this PR: 0.55-0.57sv0.3.2: 0.32-0.34s;m: 0.32-0.34s; this PR: 0.09sv0.3.2: 0.25-0.30s;m: 0.84-1.68s; this PR: 0.19sv0.3.2: 0.09-0.15s;m: 0.08s-0.12s; this PR: 0.08sv0.3.2: 35.86s;m: 185.94s; this PR: 23.63sv0.3.2: 11.92s;m: 11.92s; this PR: 10.47sCode used for benchmarks