machine_prime

Function is_prime

Source
pub const extern "C" fn is_prime(x: u64) -> bool
Expand description

Primality testing optimized for the average case in the interval 0;2^64.

Approximately 5 times faster than is_prime_wc in the average case, but slightly slower in the worst case.