#include <stdio.h>

    int main() {
        int n=2, c=1, nv=0;
            while(c<=n){
            if(n%c==0){
                nv++;
                }    
                c++;
            }

        if(nv==2){
            printf("%d es primo.", n);}

        else{
            printf("%d no es primo.",n);}
            
        return 0;
    }

Embed on website

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