Set the 0 th row of the matrix with c primes from 0 , 0 to 0 , c - 1
def set_primes ( mp , hash , c ) : NEW_LINE INDENT count = 0 ; NEW_LINE i = 2 NEW_LINE while ( count < c ) : NEW_LINE INDENT if ( is_Prime ( i ) ) : NEW_LINE INDENT if 0 not in mp : NEW_LINE INDENT mp [ 0 ] = dict ( ) NEW_LINE DEDENT mp [ 0 ] [ count ] = i ; NEW_LINE count += 1 NEW_LINE if 0 not in hash : NEW_LINE INDENT hash [ 0 ] = dict ( ) NEW_LINE DEDENT hash [ 0 ] [ count - 1 ] = 1 ; NEW_LINE DEDENT i += 1 NEW_LINE DEDENT DEDENT