1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00

factor::miller_rabin: Fix bug in primality test

Introduced in 6b9585b1 (#1525: Performance improvements for `factor`).
Closes #1556
This commit is contained in:
nicoo 2020-06-23 16:19:16 +02:00
parent c5c86b00e9
commit abf579975c

View file

@ -64,7 +64,7 @@ pub(crate) fn test<A: Arithmetic>(m: A) -> Result {
}
if x == one || x == minus_one {
break;
continue;
}
loop {