#include <iostream>
using namespace std;
void is_prime(int num){
    int n=0;
    if(num<2){
        return;}
    for(int i = 1;i<=num;i++){
        if(num%i==0){
            n=n+1;}}
    if(n==2){
        cout<<num<<"\n"; }
    return;}
int main() {
    is_prime(11);
    return 0;
}

Embed on website

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