i am write correct cod and they compile succesfully
but at submission time they say wrong answer
cod is =
#include
using namespace std;
int main(){
int n;
cin>>n;
for( int i=2; i<=n-1; i++){
if(n%i==0){
cout<<“not prime”<<endl;
break;
}
}
if(i==n){
cout<<“prime”<<endl;
}
return 0;
}