@@ -0,0 +1,302 @@
+import math%0A%0Amax = 2000000%0A%0Aprimes = %5B2%5D%0A%0Afor i in xrange(3,max,2):%0A%09prime = True%0A%09limit = math.ceil(math.sqrt(i)) # tip from SO%0A%09for j in xrange(3, int(limit)+1, 2):%0A%09%09if prime:%0A%09%09%09if i %25 j == 0:%0A%09%09%09%09prime = False%0A%09if prime:%0A%09%09primes.append(i)%0A%0Asum = 0%0Afor prime in primes:%0A%09sum += prime;%0A%0Aprint sum;%0A

summation of primes: py