Return minimum operations to get a row of the matrix with all prime numbers
if ( dp [ ( 1 << m ) - 1 ] - 1 ) == ( n + 1 ) : NEW_LINE INDENT return - 1 NEW_LINE DEDENT else : NEW_LINE INDENT return ( dp [ ( 1 << m ) - 1 ] - 1 ) NEW_LINE DEDENT