@@ -0,0 +1,406 @@
+%22Prime number generator%22%0A%0Adef gen(cap=2000000):%0A    all_primes = %5B%5D%0A    def is_prime(i):%0A        for p in all_primes:%0A            if p %3E i ** 0.5:%0A                return True%0A            if i %25 p == 0:%0A                return False%0A        return True%0A    for i in range(2, cap):%0A        if is_prime(i):%0A            all_primes.append(i)%0A            yield i%0A%0Aif __name__ == '__main__':%0A    print(sum(gen()))%0A

complete 10 summation of primes