#include <stdio.h>
int main()
{
int num,i,flag=0;
printf("enter any integer\n");
scanf("%d",&num);
for(i=2;i<num;i++)
{
if(num/i==0)
{
flag=1;
break;
}
}
if(flag==1)
printf("it is not prime\n");
else
printf("if is a prime\n");
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: