This repository has been archived on 2024-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
project-euler/e0010/euler0010.jl

15 lines
258 B
Julia
Raw Normal View History

2017-08-09 12:41:08 +02:00
#!/usr/bin/julia
import Primes
function sumprimes(n::Int)
#primnumbers = SharedArray{Int}(n)
primesum=2
parasum += @parallel (+) for i in 3:2:n
Primes.isprime(i)*i
end
primesum
end
sumprimes(11)
print(2)
@time prime = sumprimes(7)
print(prime)