Hoist by-divisor invariants and split mod-8 updates
This commit is contained in:
1 parent
1bd3d5c163
commit
0466d98434
7 files changed
+116
-126
No files matched your search
@@ -93,9 +93,15 @@ public static class MersenneNumberDivisorByDivisorTester
|
||||
}
|
||||
else
|
||||
{
|
||||
while (startIndex > 0 && candidates[startIndex - 1] >= startPrime)
|
||||
while (startIndex > 0)
|
||||
{
|
||||
startIndex--;
|
||||
int previousIndex = startIndex - 1;
|
||||
if (candidates[previousIndex] < startPrime)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
startIndex = previousIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user