Prime or not it is a challenge questiinspite of correct code it is occuring ,no score is given to me help me out where is my code incorrect

using namespace std;

int main()
{

 int n,i,p=0;
cin>>n;

for(i=1;i<=n;i++)
{
    if(n%i==0)
        p++;
}

if(p==2)
{
cout<<"prime";
}
else
   {cout<<"not prime";}
return 0;

}

Hey @jhaisha0003
Can u please share the screenshot of the question here :slight_smile:

Found it

Just make the first character capital

if(p==2)
{
cout<<"Prime";  //P caps
}
else
   {cout<<"Not Prime";} //N & P caps

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.