primecount-rs
primecount-rs is a library that provides APIs for counting the primes below an integer x ≤ 10^31 using highly optimized implementations of the combinatorial prime counting algorithms.
It is a rust wrapper around an awesome kimwalisch/primecount library.
References:
API
Add to Cargo.toml of your project:
primecount = "0.2.0"
Examples:
use primecount;
Contribute
- Install cmake
- Update primecount dependency:
git submodule update --init --recursive
cargo build
to build the librarycargo test
to run the tests