primeval-rs
A monstrosity of a prime number generator. (It's dead simple)
Features
- ZERO Dependencies (will always be this way)
- CLI Interface
- Rust library (see crates.io)
- Tiny <150 lines of Rust code
Usage
CLI
primeval help: displays a help menu.primeval gen <limit>: generates all the prime numbers up to a limitprimeval prime <number>: determines whether a number is prime or notprimeval version: shows version info
Rust Crate
main.rs
extern crate primeval;
Installation (CLI)
git clone https://github.com/ajmwagar/primeval-rscd primeval-rscargo build --releasecd target/release./primeval help- Profit!
You can also move the binary into /usr/bin or somewhere else in your PATH to use from anywhere.
Tests & Benchmarks
- To run the test suite:
cargo test- Always looking for more! (Submit a pull request)
- To benchmark Primeval:
cargo bench- Benchmarks prime number generation up to 1000000
Roadmap
- Rust Module/API
- Cleaner UI/CLI
- More SPEED!
- Factorization
- Larger number support
- Heat death of the universe