We'll increase prime count also when there was no detailed check

This commit is contained in:
Marek Lemańczyk committed 2025-09-15 13:05:33 +02:00
1 parent 206f2f0706
commit 4e4db63069
1 file changed
+1 -1
+1 -1
View File
@@ -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)