prim

Crates.ioprim
lib.rsprim
version0.1.5
sourcesrc
created_at2021-10-12 13:17:59.403284
updated_at2021-10-21 07:49:21.210914
descriptionSimple crate to find prime numbers.
homepagehttps://crates.io/crates/prim
repositoryhttps://github.com/FricknHackxr/prim
max_upload_size
id463979
size5,410
(FricknHackxr)

documentation

https://docs.rs/prim/0.1.5/prim/

README

prim

Overview

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

Example

extern crate prim;

fn main() {
    println!("{}", prim::check_prime(5)); //true
    println!("{:?}", prim::check_area(1, 10)); //[2, 3, 5, 7]
    println!("{:?}", prim::sieve_of_eratosthenes(10)); //[2, 3, 5, 7]
}

License

This project is licensed under the MIT license.

Commit count: 6

cargo fmt