`BigInteger::nextProbablePrime` throws an `ArithmeticException` when invoked on a target which is deemed too large. To parallel this behavior, `BigInteger::isProbablePrime` should perform a similar check and throw an `ArithmeticException` on large targets.
- relates to
-
JDK-8294730 Add @throws and @implNote clauses to BigInteger::isProblablePrime and BigInteger::nextProblablePrime
-
- Resolved
-