Function next_prime

Source
pub fn next_prime(n: usize) -> usize
Expand description

Finds the next prime by brute force in O(n) time Finds the next prime in O(n/2) time by skipping evens