What is the error in my checkprime code

#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 @discobot updated

Hi! To find out what I can do, say @discobot display help.