Function comlib_math::is_prime[][src]

pub fn is_prime(candidate: u64) -> bool
Expand description

Checks whether a given number is a prime.

Implements deterministic Miller-Rabin primality test for all 64-bit integers.