title: Project Euler solution doesn't work: sum of all primes below two million
body: <p>I am trying to do <a href="https://projecteuler.net/problem=10" rel="nofollow noreferrer">Project Euler's problem 10</a>:</p>
  <blockquote>
  <p>The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.<br />
  Find the sum of all the primes below two million.</p>
  </blockquote>
  <p>This is the code I wrote:</p>
  <pre><code>import math
  def is_prime(number):
    if number &lt;= 1:
      return False
    if number == 2:
      return True
    for i in range(3,int(math.sqrt(number))+1):
      if number % i ==0:
        return False
    else:
      return True 
  all_primes = []
  def check_prime():
    count = 1
    while count&lt;2000000:
      if is_prime(count) == True:
        all_primes.append(count)
      count += 2
  check_prime()
  print(sum(all_primes))
  </code></pre>
  <p>It gives me an answer of 142913828920 which is wrong, very wrong. What am I doing wrong?</p>