Sexy primes: Difference between revisions

m
Line 740:
Last 10: [999853,999863,999883,999907,999917,999931,999961,999979,999983,1000003]
</pre>
Slight variation which only holds on to the display results. Does not perform any better than above though. Both run ~ 250ms.
<lang haskell>import Control.Lens (_1, _2, _3, _4, _5, over)
import Data.Numbers.Primes (isPrime, primes)
Anonymous user