Store prime numbers in the range [ 3 , N / 2 ]
prime = [ ] NEW_LINE for i in range ( 3 , N // 2 + 1 , 1 ) : NEW_LINE INDENT if ( sieve [ i ] == 0 ) : NEW_LINE INDENT prime . append ( i ) NEW_LINE DEDENT DEDENT