1. Lars Yencken
  2. euler

Source

euler / julia / 10-sum-primes.jl

1
2
3
4
5
6
7
8
#!/usr/bin/env julia
#
#  10-sum-primes.jl
#  euler
#

xs = 2:1999999
println(sum(xs .* map(isprime, xs)))