public class Prime1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int n = 2;while(n < 200){
boolean isPrime=false;
for(int i = 2; i < n; i++) {
if(n % i == 0) {
isPrime = true;
break;
}
}
if(isPrime==false) {
System.out.println(n);
}
n++;
}
}
}