Skip to main content

sieve

Function sieve 

Source
pub fn sieve(limit: usize) -> Vec<bool>
Expand description

Returns a boolean sieve up to and including limit.

The returned vector has length limit + 1, and index i is true exactly when i is prime.