获取100以内的质子
摘要:public class TestZhiZi {//求质子100以内的public static void main(String[] args) {int a,b;for( a=1;a<=100;a++){for( b=2;b<=a;b++){if(a%b==0){break;}}if(a==b){System.out.print(a+"-");}}}}
阅读全文
posted @ 2011-06-29 14:45
posted @ 2011-06-29 14:45