Project Euler #97: Large non-Mersenne prime

  • + 0 comments

    Sovled in Java 8 using BigInteger.modPow(BigInteger exponent, BigInteger m). Optimize the input, multiply/add/mod, use primitive long.