Function to check if all the pairs of array elements are coprime with each other
def allCoprime ( A , n ) : NEW_LINE INDENT all_coprime = bool ( True ) NEW_LINE factors = set ( ) NEW_LINE for i in range ( n ) : NEW_LINE INDENT if A [ i ] == 1 : NEW_LINE INDENT continue NEW_LINE DEDENT DEDENT DEDENT