Predictive and default bydivisor modes will use separate files to track the last checked k to prevent impacting results between modes.
This commit is contained in:
1 parent
a6d408f2aa
commit
27f65baf3d
1 file changed
+5
-1
+5
-1
@@ -68,9 +68,13 @@ internal struct MersenneNumberDivisorByDivisorPrimeScanSessionWithTemplate
|
||||
try
|
||||
{
|
||||
Console.WriteLine($"Processing {prime}");
|
||||
string extension = ".bin";
|
||||
#if DivisorSet_Predictive
|
||||
extension = ".predictive";
|
||||
#endif
|
||||
string stateFile = Path.Combine(
|
||||
PerfectNumberConstants.ByDivisorStateDirectory,
|
||||
prime.ToString(CultureInfo.InvariantCulture) + ".bin");
|
||||
prime.ToString(CultureInfo.InvariantCulture) + extension);
|
||||
|
||||
ConfigureForPrime(stateFile);
|
||||
|
||||
|
||||
Reference in new issue
Block a user