this code consider 0,1 as prime numbers and when i remove "!" sign from 0 and 1 it says an error
#include <iostream>
#include <conio.h>
using namespace std;
int main(){
int x, y;
while (true) {
cout << "Please Enter a positive number\n";
cin >> x;
if(0 != x || 1 != x) break;
cout<<"Please try again with number other then 0 or 1\n"; }
for (y = 2; y<x; y++) {
if ((x % y) == 0)
break; } if (y < x)
cout << "Not prime number\n";
else
cout << "prime number\n";
getch();
}