is-prime-for-primitive-int

Crates.iois-prime-for-primitive-int
lib.rsis-prime-for-primitive-int
version0.5.1
sourcesrc
created_at2020-12-29 11:21:05.225946
updated_at2021-12-17 12:34:15.48854
descriptionis_prime for primitive ineger type
homepage
repositoryhttps://gitlab.com/Toru3/is-prime-for-primitive-int
max_upload_size
id328717
size8,998
(Toru3)

documentation

https://docs.rs/is-prime-for-primitive-int/

README

is-prime-for-primitive-int

usage

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);

Licence

AGPL-3.0-or-later

Commit count: 9

cargo fmt