Change to the actual test number
This commit is contained in:
parent
f4284934ba
commit
047060dfbb
1 changed files with 4 additions and 5 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue