#include <stdio.h>
int main()
{
int prime(int n);
int i;
printf("enter an interger:");
scanf("%d",&i);
if(prime(i)==1)
printf("%d this is a prime\n",i);
else
printf("%d this not is prime\n",i);
return 0;
}
int prime(int n)
{
int z=1;
int j;
for(j=2; j<n/2&&z==1; j++)
if(n%j==0)
z=0;
return(z);
}