Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
Changed to quicker stop method.
Browse files Browse the repository at this point in the history
  • Loading branch information
klanderfri committed Aug 13, 2019
1 parent 1395cea commit 831aa12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PrimeNumberGenerator/PrimeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private static bool isPrimeNumber(List<BigInteger> allKnownPrimesSortedAsc, BigI
if (numberToCheck % prime == 0)
{
isPrime = false;
state.Break();
state.Stop();
}
});

Expand Down

0 comments on commit 831aa12

Please sign in to comment.