primeval-rs

Build Status

A monstrosity of a prime number generator. (It's dead simple)

Features

Usage

CLI

Rust Crate

main.rs ```rust extern crate primeval;

fn main(){ // Primality? let result = primeval::is_prime(2);

// Generation, in this case all the primes from 0 - 1000 let result: Vec = primeval::primes_gen(1000).collect::>(); } ```

Installation (CLI)

  1. git clone https://github.com/ajmwagar/primeval-rs
  2. cd primeval-rs
  3. cargo build --release
  4. cd target/release
  5. ./primeval help
  6. Profit!

You can also move the binary into /usr/bin or somewhere else in your PATH to use from anywhere.

Tests & Benchmarks

Roadmap