Пример #1
0
        static void Main(string[] args)
        {
            var primes = new PrimesCollection(2, 100);

            foreach (int prime in primes)
            {
                System.Console.WriteLine(prime);
            }
        }
 public Enumerator(PrimesCollection collection)
 {
     Collection = collection;
     Reset();
 }