方法一: import java.util.Scanner; public class PrimeNumber { /*用(int) Math.sqrt(n)求出迴圈上限 * isPrime()方法用來檢測當前數是否為質數
確定! 回上一頁