prim

Overview

Simple crate to find prime numbers. Source code can be found on Github.

Example

``` extern crate prim;

fn main() { println!("{}", prim::checkprime(5)); //true println!("{:?}", prim::checkarea(1, 10)); //[2, 3, 5, 7] println!("{:?}", prim::sieveoferatosthenes(10)); //[2, 3, 5, 7] } ```

License

This project is licensed under the MIT license.