void main()
{
int a,i,c;
clrscr();
printf("enter the number to be checked:");
scanf("%d",a);
for(i=1;i<=a;i++)
if(a%i==0) c++;
if(c==2) printf("not prime");
else printf("prime");

getch();
}