#miller-rabin #testing #crypto-bigint #ziglet-primality

ziglet-primality

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

2 releases

new 0.1.1 May 9, 2025
0.1.0 May 9, 2025

#559 in Math


Used in ziglet-paillier

MIT license

11KB
144 lines

Miller Rabin Composite Test

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


Prime Generation and Primality Testing

An implementation of algorithms for prime generation and primality testing:

  • Miller-Rabin

Licensing

  • MIT

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

Dependencies

~1MB
~24K SLoC