Esempio n. 1
0
import math
from helpers import is_prime_number 

sum_primes_below_two_million = 0

for x in xrange(2000000):
  if x == 2 or x % 2:
    if is_prime_number(x):
      sum_primes_below_two_million += x

print sum_primes_below_two_million
Esempio n. 2
0
import math
from helpers import is_prime_number 

number = 1 
count = 0

while count < 10001:
  number = number + 1
  if number == 2 or number % 2:
    if is_prime_number(number):
      count = count + 1

print number