From f4284934baf21eea568fabda669f8f28457cd76b Mon Sep 17 00:00:00 2001 From: Felix Cremer Date: Wed, 9 Aug 2017 12:41:08 +0200 Subject: [PATCH] Add julia solution to 10 --- e0010/euler0010.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 e0010/euler0010.jl diff --git a/e0010/euler0010.jl b/e0010/euler0010.jl new file mode 100644 index 0000000..1c5d491 --- /dev/null +++ b/e0010/euler0010.jl @@ -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)