find prime number in c #
static Boolean PrimerNumber (int x) //The function return a value of true or false for a prime number
{
int i, count=0;
bool flag=false;
for (i = 2; i < x; i++)
{
if (x % i == 0)
{
cont = 1;
break;
}
}
if (count == 0)
flag = true;
return flag;
}