java找出五个大于Long.MAX_VALUE的素数_百度知道
最佳答案: int count=0; BigInteger bi = new BigInteger(Integer.MAX_VALUE); while(count<5) { bi = bi.nextProbablePrime(); //要想严格证明是素数,那...更多关于JAVA的一道习题:找出五个大于Long.MAX_VALUE的素数的问题>>
java找出大于Long.MAX_VALUE的前10个平方数。_百度知道
最佳答案: long begin = (long)Math.sqrt(Long.MAX_VALUE) ;for(int i = 1; i <= 10; i++){ BigInteger r = new BigInteger(begin + i); Big...更多关于JAVA的一道习题:找出五个大于Long.MAX_VALUE的素数的问题>>