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