Generate all N digit primes
L = pow ( 10 , N - 1 ) NEW_LINE R = pow ( 10 , N ) - 1 NEW_LINE for i in range ( L , R + 1 ) : NEW_LINE INDENT if ( isPrime ( i ) ) : NEW_LINE INDENT primes . append ( i ) NEW_LINE DEDENT DEDENT for i in range ( len ( primes ) ) : NEW_LINE