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
for(int i = 2;i<x;i++){
if( x%i==0)
return false;
}
return true;
public static void Main()
int x = 17;
if( isPrime(x) == true){
Console.Write("{0} is Prime ",x);
else{
Console.Write("{0} is not Prime ",x);
// please implement this program