using System;
public class Program
{
//Q13. Write a C# program to check if a number input by the user is prime or not
//Test Data :
//Enter a number : 7
//Expected Output : 7 is prime
public static void Main()
int[] primeArray=new int[30];
int index=0;
for (int j = 1; j <= 100; j++)
int count = 0;
int n = j;
for (int i = 1; i <= n; i++)
if (n % i == 0)
count++;
}
if (count == 2)
//Console.WriteLine(n + " is prime");
primeArray[index]=n;
index++;
for(int i=0;i< index; i++)
Console.WriteLine(primeArray[i]);