using System;
public class Program
{
static bool isPrime(int x)
for (int i = 2; i <= Math.Sqrt(x); i++)
if (x%i==0)
return false;
}
return true;
// bool is a boolean type that has value of true/false
// please implement this method
public static void Main()
for (int i = 2; i < 500; i++)
if (isPrime(i))
Console.WriteLine(i);
// please implement this program