二重循環,輸出500內的所有質數

    int count = 0; int count2 = 0; for(int i = 2;i<=500;i++){ //證明 count2++; boolean is = true; for(int j = 2;j<=Math.sqrt(i);j++){
相關文章
相關標籤/搜索