Check if product is co - prime to product of either the left or right subarrays
if ( gcd ( product , right_prod [ j + 1 ] ) == 1 or gcd ( product , total_prod / right_prod [ i ] ) == 1 ) : NEW_LINE INDENT flag = 1 NEW_LINE print ( " ( " , ( i - 1 ) , " , ▁ " , ( j + 1 ) , " ) " ) NEW_LINE break NEW_LINE DEDENT if ( flag == 1 ) : NEW_LINE break NEW_LINE