JDK 9 RFR of 8026236: Add PrimeTest for BigInteger [TEST-ONLY]
brian.burkhalter at oracle.com
Wed Apr 23 15:20:04 UTC 2014
The limitation below is precisely what I referred to in my post in particular with respect to the upper bound of non-primes tested.
Thank you for your observations: I will look into the ideas and repost a revised patch later.
On Apr 23, 2014, at 7:28 AM, Peter Levart <peter.levart at gmail.com> wrote:
> - you could obtain the largest prime number from the set easily (NavigableSet.last()) and use it as the "upperBound" for the range of integers you test.
More information about the core-libs-dev