Skip to main content

next_prime

Function next_prime 

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

Returns the smallest prime strictly greater than n.

Returns None when no larger u64 value exists.