#prime #prime-factors #big-int

no-std bin+lib nums

Number theoretic functions, such as primality testing and factorization, for BigUints

2 releases (1 stable)

1.0.0 May 23, 2024
0.1.0 May 7, 2024

#432 in Math

Download history 232/week @ 2024-07-13 351/week @ 2024-07-20 249/week @ 2024-07-27 218/week @ 2024-08-03 272/week @ 2024-08-10 175/week @ 2024-08-17 289/week @ 2024-08-24 243/week @ 2024-08-31 402/week @ 2024-09-07 570/week @ 2024-09-14 870/week @ 2024-09-21 711/week @ 2024-09-28 574/week @ 2024-10-05 639/week @ 2024-10-12 485/week @ 2024-10-19 739/week @ 2024-10-26

2,522 downloads per month
Used in 28 crates (via p3-field)

MIT/Apache

54KB
1.5K SLoC

nums

This library contains some number theoretic functions, such as primality testing and factorization, for BigUints.

Status

Primality tests:

  • Trial division
  • Miller-Rabin

Factorization:

  • Trial division
  • Pollard's rho
  • Quadratic sieve
  • General number sieve

License

Licensed under either of

at your option.

Licensing

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

Dependencies

~8MB
~135K SLoC