We'll increase prime count also when there was no detailed check
This commit is contained in:
1 parent
206f2f0706
commit
4e4db63069
1 file changed
+1
-1
@@ -763,7 +763,7 @@ internal static class Program
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private static void PrintResult(ulong currentP, bool searchedMersenne, bool detailedCheck, bool isPerfect)
|
||||
{
|
||||
if (isPerfect && detailedCheck)
|
||||
if (isPerfect)
|
||||
{
|
||||
int newCount = Interlocked.Increment(ref _primeCount);
|
||||
if (newCount >= 2)
|
||||
|
||||
Reference in new issue
Block a user