Restored maxK override based on command line parameter

This commit is contained in:
Marek Lemańczyk committed 2025-09-21 04:14:21 +02:00
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);