23 Apr
2014
23 Apr
'14
3:20 p.m.
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@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.