mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 21:47: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:
parent
c5c86b00e9
commit
abf579975c
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ pub(crate) fn test<A: Arithmetic>(m: A) -> Result {
|
|||
}
|
||||
|
||||
if x == one || x == minus_one {
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
||||
loop {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue