bool isPrime=true;
for (int i=2;i<n;i++) {
    if (n%i==0) {
       isPrime=false;
       break;
       }
 }
