#include <stdio.h>
int main()
{
int a,b;
printf("enter an number");
scanf("%d",&a);
for (b=2; b<10;b++)
{
if (a%b==0 && a!=2)
{
printf("\nno, it's not a prime number");
break;
}
else
{
printf("\nyes, it's a prime number");
break;
}
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: