project-euler

Summation of primes

Problem Description

The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.

Find the sum of all the primes below two million.

Performance

Try it online!

Real time: 22.129 s
User time: 21.669 s
Sys. time: 0.334 s
CPU share: 99.42 %
Exit code: 0