public static void Main()
Console.WriteLine("Write as many numbers as you want, but once yopu type a zero you the program will stop and tell you how many prime numbers were written.");
num = int.Parse(Console.ReadLine());
for (int i = 1; i <= num; i++)
num = int.Parse(Console.ReadLine());
Console.WriteLine("Prime numbers: " + p );