Check the size of the target on invocations of BigInteger::isProbablePrime

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 8, 11, 17, 19
    • Component/s: core-libs
    • None
    • b18
    • generic
    • generic

      `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.

            Assignee:
            Raffaello Giulietti
            Reporter:
            Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: