Crates.io | prim |
lib.rs | prim |
version | 0.1.5 |
source | src |
created_at | 2021-10-12 13:17:59.403284 |
updated_at | 2021-10-21 07:49:21.210914 |
description | Simple crate to find prime numbers. |
homepage | https://crates.io/crates/prim |
repository | https://github.com/FricknHackxr/prim |
max_upload_size | |
id | 463979 |
size | 5,410 |
Simple crate to find prime numbers. Source code can be found on Github.
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]
}
This project is licensed under the MIT license.