pub fn primes(n: usize) -> Vec<usize> {
    let tbl = sieve_of_eratosthenes(n);
    tbl.into_iter()
        .enumerate()
        .filter(|&(_, is_prime)| is_prime)
        .map(|(i, _)| i)
        .collect::<Vec<usize>>()
}
/// Find n or less primes using Sieve of Eratosthenes
Find n or less primes using Sieve of Eratosthenes
Find n or less primes using Sieve of Eratosthenes
pub fn primes(n: usize) -> Vec<usize> {
    let tbl = sieve_of_eratosthenes(n);
    tbl.into_iter()
        .enumerate()
        .filter(|&(_, is_prime)| is_prime)
        .map(|(i, _)| i)
        .collect::<Vec<usize>>()
}
pub fn primes ( n : usize ) -> Vec < usize > { let tbl = sieve_of_eratosthenes ( n ) ; tbl . into_iter ( ) . enumerate ( ) . filter ( | & ( _ , is_prime ) | is_prime ) . map ( | ( i , _ ) | i ) . collect :: < Vec < usize > > ( ) }
Find n or less primes using Sieve of Eratosthenes
Find n or less primes using Sieve of Eratosthenes
n
usize
n
usize