public bool PrimeChecker(int n)
for (int i = 1; i <= n; i++)
public static void Main()
Calculator ob = new Calculator();
Console.WriteLine("Enter the size of the array:");
int p = Int32.Parse(Console.ReadLine());
int[] array = new int[p];
Console.WriteLine("Enter the elements of the array:");
for (int i = 0; i < p; i++)
array[i] = Int32.Parse(Console.ReadLine());
for (int i = 0; i < p; i++)
j = ob.PrimeChecker(array[i]);
Console.WriteLine("Count of Prime Numbers=" + s);