#numbers #primality #miller-rabin #prime #composite #testing #crypto-bigint

yanked crypto-primality

Implementation of primality tests for multi-precision numbers using crypto-bigint

0.1.1 Feb 27, 2025
0.1.0 Feb 27, 2025

#7 in #miller-rabin

Download history 109/week @ 2025-01-29 263/week @ 2025-02-26

263 downloads per month

BUSL-1.1

12KB
144 lines

Prime Generation and Primality Testing

An implementation of algorithms for prime generation and primality testing:

  • Miller-Rabin

Licensing

  • BUSL-1.1
  • Commercial licensing is available

Copyright

Copyright (c) Jeffrey Hohenstein jeffrey.hohenstein@gmail.com

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.

References


lib.rs:

Miller Rabin Composite Test

This test offers a probabilistic test for whether a (potentially) large number is composite.

Dependencies

~1MB
~24K SLoC