#include <iostream>
using namespace std;

int main() {
    int n=14;
    bool isPrime=true;

    for(int i=2;i<n-1;i++){
        if(n%i==0){//non prime
            isPrime=false;
            break;
        }
    }

    if(isPrime == true){
        cout<<"prime no\n";
    }else{
        cout<< "non prime no\n";
    }
    
    return 0;
}

Embed on website

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