Crates.io | primality-test |
lib.rs | primality-test |
version | 0.3.0 |
source | src |
created_at | 2024-01-03 15:48:59.518207 |
updated_at | 2024-03-19 12:06:01.11166 |
description | Primality Test crate |
homepage | |
repository | https://github.com/tayu0110/primality-test.git |
max_upload_size | |
id | 1087494 |
size | 19,761 |
Provide a method to determine whether an unsigned integer is a prime number through the IsPrime
Trait.
In the current implementation, this crate uses the Miller-Rabin primality test.
The Miller-Rabin primality test is known to have witnesses that can conclusively determine unsigned integers of at most 64 bits.
In this crate, the following information is used to select the witnesses.
Deterministic variants of the Miller-Rabin primality test
This crate is provided under MIT License.
Please read LICENSE
.