concurrent_prime_sieve
Tools for generating filters and collections with primes concurrently.
Rust implementation of the Sieve of Atkin.
concurrent_prime_sieve::filter
Generates a vector of bools of size iter_size, with
true
at each prime index, andfalse
otherwise.
Similar to
fn prime_filter
, but just for numbers between min and max, returned in a vector of length max-min.
concurrent_prime_sieve::collection
Generates a vector collection of primes strictly less than max_prime.
Generates a vector collection of primes between min_prime and max_prime.
Similar to
fn primes
, but can be performed across a specified number of threads. (This can easilly cut the time by an order of magnitude)
Similar to
fn primes_section
, but can be performed across a specified number of threads (This can easilly cut the time by an order of magnitude)