prime_suspects 0.2.0

A selection of prime sieves.
Documentation
  • Coverage
  • 44.44%
    4 out of 9 items documented3 out of 3 items with examples
  • Size
  • Source code size: 13.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.42 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bright-star

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: