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

Implement the improved Lucas test from Baillie et al '21 #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fjarri
Copy link
Member

@fjarri fjarri commented Jan 25, 2025

Fixes #21

  • Add LucasCheck::Bpsw21 implementing the checks described in Baillie et al
  • Use it as the default primality check
  • Remove is_prime_with_rng() and is_safe_prime_with_rng(), since the new check is deterministic.

@fjarri fjarri self-assigned this Jan 25, 2025
@fjarri fjarri requested a review from dvdplm February 4, 2025 19:47
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 96.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 98.85%. Comparing base (a280813) to head (f323390).

Files with missing lines Patch % Lines
src/hazmat/lucas.rs 96.66% 2 Missing ⚠️
src/presets.rs 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
+ Coverage   98.71%   98.85%   +0.14%     
==========================================
  Files          11       11              
  Lines        1709     1744      +35     
==========================================
+ Hits         1687     1724      +37     
+ Misses         22       20       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fjarri fjarri force-pushed the bpsw21 branch 3 times, most recently from 5ef4b2d to 530bbb7 Compare February 23, 2025 21:52
@fjarri fjarri marked this pull request as ready for review February 23, 2025 21:57
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.

Implement full improved Baillie-PSW test
1 participant