#include
using namespace std;
int main(){
int i = 2;
int n;
cin>>n;
while(i<n){
if(n%i==0){
cout<<“not a prime number”;
break;
}
i++;
}
if(i==n){
cout<<“prime”;
}
return 0;
}
#include
using namespace std;
int main(){
int i = 2;
int n;
cin>>n;
while(i<n){
if(n%i==0){
cout<<“not a prime number”;
break;
}
i++;
}
if(i==n){
cout<<“prime”;
}
return 0;
}
Hi! To find out what I can do, say @discobot display help
.