public static void Main(string[] args) { PrimeCollection pc = new PrimeCollection(); foreach (int p in pc) { Console.WriteLine(p); } }
public static void Main(string[] args) //metoda główna { PrimeCollection pc = new PrimeCollection(); //tworzymy nowy obiekt foreach (int p in pc) { System.Console.WriteLine(p);//wypisujemy elementy } }