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:
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 {
|
if x == one || x == minus_one {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue