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 count = 0;
Console.Write("Enter a number:");
int n = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= n; i++)
if (n % i == 0)
count++;
}
if (count == 2)
Console.WriteLine(n + " is prime");