Find primes using Sieve of Eratosthenes
for i in range ( 2 , limit + 1 ) : NEW_LINE INDENT if mark [ i ] == False : NEW_LINE INDENT prime . append ( i ) NEW_LINE for j in range ( i , limit + 1 , i ) : NEW_LINE INDENT mark [ j ] = True NEW_LINE DEDENT DEDENT DEDENT