From 047060dfbbf8ff4ce83f68ca94518784b5ad26bf Mon Sep 17 00:00:00 2001 From: Felix Cremer Date: Wed, 9 Aug 2017 12:52:06 +0200 Subject: [PATCH] Change to the actual test number --- e0010/euler0010.jl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/e0010/euler0010.jl b/e0010/euler0010.jl index 1c5d491..d2f0e7d 100644 --- a/e0010/euler0010.jl +++ b/e0010/euler0010.jl @@ -3,12 +3,11 @@ import Primes function sumprimes(n::Int) #primnumbers = SharedArray{Int}(n) primesum=2 - parasum += @parallel (+) for i in 3:2:n + parasum = @parallel (+) for i in 3:2:n Primes.isprime(i)*i end - primesum + primesum+=parasum end -sumprimes(11) -print(2) -@time prime = sumprimes(7) +sumprimes(10) +@time prime = sumprimes(2000000) print(prime)