2 unstable releases
Uses old Rust 2015
0.2.0 | Dec 13, 2018 |
---|---|
0.1.0 | Dec 11, 2018 |
#20 in #composite
7KB
144 lines
Probabilistic algorithms for checking whether integer is prime or not. Implements Rabin-Miller test and Baillie-PSW test. Strictly speaking, these are 'compositionality' tests i.e the algorithms check whether a number is composite - if deemed so (output=true) then the number is certainly composite; if the output is false, then the number is prime with high probability.
Dependencies
~0.6–0.8MB
~11K SLoC