lcm ( a , b ) = ( a * b / gcd ( a , b ) )
if ( idx == len ( arr ) - 1 ) : NEW_LINE INDENT return arr [ idx ] NEW_LINE DEDENT a = arr [ idx ] NEW_LINE b = LcmOfArray ( arr , idx + 1 ) NEW_LINE return int ( a * b / __gcd ( a , b ) ) NEW_LINE