In [14]:
"""
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.

Find the sum of all the primes below two million.
"""

import sympy

sum(primerange(0,2000000))


Out[14]:
142913828922