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

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

edits