public class aa{ public static void main (String args []){ //author:qq986945193 for (int i = 100;i<201;i++){ boolean flag = true; for (int j = 2;j<i-1;j++){ if(i%j==0){ flag = false; } } if(flag){ System.out.println(i); } } } }
java源代码下载地址:http://download.csdn.net/detail/qq_21376985/9486166