| Crates.io | prime_suspects |
| lib.rs | prime_suspects |
| version | 0.2.0 |
| created_at | 2016-10-08 21:22:20.609323+00 |
| updated_at | 2016-10-08 21:22:20.609323+00 |
| description | A selection of prime sieves. |
| homepage | |
| repository | https://github.com/bright-star/prime-suspects |
| max_upload_size | |
| id | 6790 |
| size | 13,073 |
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.
cargo run --example simple_eratosthenescargo test for different unit/documentation testscargo doc --openShepmaster 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: