Exemple #1
0
def main():
    count = 1
    num = 2

    while count < 10001:
        num += 1
        if prime_tools.isprime(num):
            count += 1

    print num
Exemple #2
0
def brute_force_sum_primes():
    return sum(x for x in xrange(2, 2000001) if prime_tools.isprime(x))