prime_suspects

Crates.ioprime_suspects
lib.rsprime_suspects
version0.2.0
sourcesrc
created_at2016-10-08 21:22:20.609323
updated_at2016-10-08 21:22:20.609323
descriptionA selection of prime sieves.
homepage
repositoryhttps://github.com/bright-star/prime-suspects
max_upload_size
id6790
size13,073
(bright-star)

documentation

README

prime-suspects

An O(sqrt(n))-time implementation of Eratosthenes' sieve in Rust, with an additional implementation using segmented sieving to ensure O(sqrt(n)) memory usage.

I also wrote a Ruby version.

try it

  1. cargo run --example simple_eratosthenes
  2. cargo test for different unit/documentation tests

docs

  1. cargo doc --open

references

Shepmaster on Stack Overflow was beyond helpful in code review and in learning how to handle borrowing in parallel threads.

A list of other references I consulted along the way:

Commit count: 0

cargo fmt