Expand description
§prime_tools
prime_tools
is a collection of utilities to make working with
prime numbers a bit easier.
Functions§
- get_
prime_ factors_ with_ counts - Creates a map of prime factors -> prime factor counts.
- get_
primes_ between - Generates u64 primes between min (inclusive) and max (exclusive).
- get_
primes_ less_ than_ x - Generates an ordered list of prime numbers less than x.
- is_
u32_ prime - Figures out if a u32 is prime.
- is_
u64_ prime - Figures out if a u64 is prime.