Check if sum of first n primes is prime: Difference between revisions

m
Line 12:
639
</lang>
So, with a bit of experimentation, we find that to duplicate the Ring result we need to sum up to the first 160158 primes, which then
gives us 20 prime results when we filter for a prime number as the sum:
<lang julia>julia> julia> filter(p -> isprime(p[2]), collect(enumerate(accumulate(+, primes(prime(160158))))))
20-element Vector{Tuple{Int64, Int64}}:
(1, 2)
4,102

edits