diff --git a/PrimeNumberGenerator/PrimeGenerator.cs b/PrimeNumberGenerator/PrimeGenerator.cs index 14c0120..f635bfb 100644 --- a/PrimeNumberGenerator/PrimeGenerator.cs +++ b/PrimeNumberGenerator/PrimeGenerator.cs @@ -175,7 +175,7 @@ private static bool isPrimeNumber(List allKnownPrimesSortedAsc, BigI if (numberToCheck % prime == 0) { isPrime = false; - state.Break(); + state.Stop(); } });