1234567891011
int i=0; counter=0; for(int i=2;i<(number/2);i++){ if(number%i==0) counter++; } if(counter>0){ cout<<"isnt prime"; } else cout<<"prime";