#include
using namespace std;
int main(){
int N;
bool flag = true;
cin>>N;
for(int i = 2; i <= N / 2; i++) {
if(N % i == 0) {
flag = false;
break;
}
}
if (flag==true)
cout<<" prime “;
else
cout<<” not prime ";
return 0;
}
This code is compiling successfully but when i submit it ,it is showing 0 marks and all test cases fails. Why this is happening?