Add julia solution to 10

This commit is contained in:
Felix Cremer 2017-08-09 12:41:08 +02:00
parent f925e1c86c
commit f4284934ba

14
e0010/euler0010.jl Normal file
View file

@ -0,0 +1,14 @@
#!/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)