[−][src]Crate red_primality
red_primality provides a quick accurate primality test for all u64.
Example
use red_primality::is_u64_prime; fn main() { assert!(is_u64_prime(5)); assert!(!is_u64_prime(6)); }
Structs
PrimeIter | PrimeIter returns a sequence of primes in ascending order. |
Constants
MAX_U64_PRIME | This is the largest prime integer that fits in a |
Functions
is_u64_prime | Determines if the given parameter is prime. |