摘要:
public class a {public static void main(String[] args){int i=1,j;do{j=2;while((i%j!=0)&&(i>j)) {j++;} if(i==j)System.out.println(i);i++;}while(i<100); 阅读全文
摘要:
public class Prime {public static void main(String[] args){for(int i=1;i<=9;i++){for(int j=1;j<=9;j++){if(j>i){break;}System.out.print(" "+i+"*"+j+"=" 阅读全文