Restored maxK override based on command line parameter
This commit is contained in:
1 parent
23e8d306b1
commit
b464985596
1 file changed
+5
@@ -228,6 +228,11 @@ public sealed class MersenneNumberTester(
|
||||
// In residue mode the residue scan is the final primality check.
|
||||
if (_useResidue)
|
||||
{
|
||||
if (_maxK < maxK)
|
||||
{
|
||||
maxK = _maxK;
|
||||
}
|
||||
|
||||
if (_useGpuScan)
|
||||
{
|
||||
_residueGpuTester!.Scan(exponent, twoP, lastIsSeven, maxK, ref prePrime);
|
||||
|
||||
Reference in new issue
Block a user