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 count = 0;
for(int i = 2 ; i <= x ; i++){
if(x % i == 0){
count++;
}
if (count == 1){
return true;
else return false;
public static void Main()
int x = 2;
Console.WriteLine("{0}\n", x);
for (x = 3; x < 500; x++){
if (isPrime(x) == true){
// please implement this program