Test case not passing

just wanted to know whats wrong in this code it does print prime or not a prime

#include
using namespace std;
int main() {
int number;
cin>>number;
int f;
f=number-1;

for(int i=2;i<=f;i++){

if(number%i==0){

cout<<"not a prime"<<i;

break;

}else{
cout<<“prime”;
break;
}

}

return 0;

}