from collections import Counter from math import gcd def lcm(x,y): return x*y//gcd(x,y) N=int(input()) A=list(map(int,input().split())) ANS=[A[0]] X=Counter(A[1:]) while X: if X[1]!=0: ANS.append(1) X[1]-=1 if X[1]==0: del X[1] else: MIN=1<<30 a=ANS[-1] now=-1 for x in X: if lcm(a,x)