Summation of primes: Difference between revisions

Content added Content deleted
(add gwbasic)
mNo edit summary
Line 93: Line 93:
The sum of all primes below 2 million is 142,913,828,922.
The sum of all primes below 2 million is 142,913,828,922.
</pre>
</pre>


=={{header|Julia}}==
<lang julia>using Primes

@show sum(primes(2_000_000)) # sum(primes(2000000)) = 142913828922
</lang>



=={{header|PARI/GP}}==
=={{header|PARI/GP}}==