Skip to main content

next_prime

Function next_prime 

Source
pub fn next_prime(n: u64) -> Option<u64>
Expand description

The smallest prime ≥ n (None past the largest 64-bit prime).