JDK 9 RFR of 8026236: Add PrimeTest for BigInteger [TEST-ONLY] (original) (raw)
Brian Burkhalter brian.burkhalter at oracle.com
Wed Apr 23 15:20:04 UTC 2014
- Previous message: JDK 9 RFR of 8026236: Add PrimeTest for BigInteger [TEST-ONLY]
- Next message: JDK 9 RFR of 8026236: Add PrimeTest for BigInteger [TEST-ONLY]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Peter,
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.
Regards,
Brian
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.
- Previous message: JDK 9 RFR of 8026236: Add PrimeTest for BigInteger [TEST-ONLY]
- Next message: JDK 9 RFR of 8026236: Add PrimeTest for BigInteger [TEST-ONLY]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]