This crate provides utilities for integer modular arithmetics and prime related functionalities:
- Modular Arithmetics
- Modular operators: add
, sub
, mul
, pow
, neg
, inv
- Jacobi Symbol
- Related Number theoretic functions
- Primality check
- Fermat probable prime test
- Miller-rabin probable prime test
- (strong/extra strong) Lucas probable prime test
- Baillie-PSW test
- Primes generation and indexing
- Integer factorization
- Trial division
- Pollard's rho
It's based on the num
creates.