Crates.io | is-prime-for-primitive-int |
lib.rs | is-prime-for-primitive-int |
version | 0.5.1 |
source | src |
created_at | 2020-12-29 11:21:05.225946 |
updated_at | 2021-12-17 12:34:15.48854 |
description | is_prime for primitive ineger type |
homepage | |
repository | https://gitlab.com/Toru3/is-prime-for-primitive-int |
max_upload_size | |
id | 328717 |
size | 8,998 |
use is_prime_for_primitive_int::IsPrime;
assert_eq!(2.is_prime(), true);
assert_eq!(57.is_prime(), false);
assert_eq!(91.is_prime(), false);
assert_eq!(97.is_prime(), true);
AGPL-3.0-or-later