Source

euler / julia / 10.jl

1
2
3
4
5
6
7
# The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
# 
# Find the sum of all the primes below two million.
#
# Answer: 142913828922

println(sum(primes(2000000)))