Facing problem with compliation of challenges

My codes are running perfectly fine on VS code and i am recieving the correct output too but it is still telling me i am wrong somewhere i am facing this issue in all my challenges. i am putting my code too:-

#include
using namespace std;

int main(){
//Chceck if a given number is Prime
int n;
cin>>n;

int i;

for(i=2; i<=n-1; i++){
    if(n%i==0){
        cout<<"N Prime "<<endl;
        break;
    }
}
//Remember this check is important
if(i==n){
    cout<<"Prime"<<endl;
}

return 0;

}

Hey @r_apaar please share your code using ide.codingblocks.com , can’t read your code like this.

check now ->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.