public class Main {
public static void main(String[] args) {
for ( int i=101; i<=199; i++){
if(primeNumber(i)==1){
System.out.println(i);
}}}
public static int primeNumber(int m){
for (int i=2;i<m;i++){
if (m%i==0){
return 0;}}
return 1;}}
为了减少长度便没按标准格式!