#include<stdio.h>
int main(){
    int num=12,i,prime=1;
    for(i=2; i<=num/2; i++){
        if(num%i==0){
            prime=0;
            break;
    }
    }
    if(prime==1){
        printf("Prime number");
    }
    else{
     printf("Not Prime number");   
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: