Console logging info added to know when a task starts & completes
This commit is contained in:
1 parent
2d103a9662
commit
74ab4e91e6
1 file changed
+2
@@ -235,6 +235,7 @@ public static class MersenneNumberDivisorByDivisorTester
|
|||||||
|
|
||||||
void ProcessPrime(ulong prime)
|
void ProcessPrime(ulong prime)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"Task started {prime}");
|
||||||
bool isPrime = tester.IsPrime(prime, out bool divisorsExhausted);
|
bool isPrime = tester.IsPrime(prime, out bool divisorsExhausted);
|
||||||
|
|
||||||
if (!isPrime)
|
if (!isPrime)
|
||||||
@@ -246,6 +247,7 @@ public static class MersenneNumberDivisorByDivisorTester
|
|||||||
|
|
||||||
clearComposite();
|
clearComposite();
|
||||||
printResult(prime, true, divisorsExhausted, true);
|
printResult(prime, true, divisorsExhausted, true);
|
||||||
|
Console.WriteLine($"Task finished {prime}");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (workerCount == 1)
|
if (workerCount == 1)
|
||||||
|
|||||||
Reference in new issue
Block a user