1 bool iss(int x) 2 { 3 if(x<2)return false; 4 for(int i=2;i*i<=x;i++) 5 if(x%i==0)return false; 6 return true; 7 }