Prime numbers p for which the sum of primes less than or equal to p is prime: Difference between revisions
Prime numbers p for which the sum of primes less than or equal to p is prime (view source)
Revision as of 22:09, 10 July 2021
, 2 years agono need for dict
m (no need for dict) |
|||
Line 171:
<lang julia>using Primes
primesumto(N) = begin s = 0;
const primesumdict = primesumto(1000)
println("Prime Prime Sum to Prime\n---------------------------")
for
println(rpad(
end
println("\nTotal such primes < 100: ", length(primesumdict))
|