#include <stdio.h>
int main() {
int n=10;
int not_prime=0;
if(n==0 || n==1){
not_prime=1;
}
else{
for(int i=2; i<n; i++){
if(n%i==0 && n!=2){
not_prime=1;
break;
}
}
}
if(not_prime){
printf("%d is not prime\n",n);
}
else{
printf("%d is prime\n",n);
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: