public class TestSuShu { public static void main(String[] args) { for(int i=2;i<=100;i++) { boolean isSushu = true; for(int j=2;j<i;j++) { if(i%j==0) ...
public class TestSuShu {
public static void main(String[] args) {
for(int i=2;i<=100;i++) {
boolean isSushu = true;
for(int j=2;j<i;j++) {
if(i%j==0) {
isSushu = false;
break;
}
}
if(isSushu==true) {
System.out.println(i);
}
}
}
}