static void Main(string[] args) { var list = Primes.GeneratePrimeNumbers(1000); foreach (var prime in list) { Console.WriteLine(prime); } }
private bool AllPrimesContained() { var list = Primes.GeneratePrimeNumbers(1000); bool assert = true; foreach (var p in list) { var result = primeList.Contains(p); if (result == false) { assert = false; break; } } return(assert); }