integer(16) N
integer(16) T,ans
read*,N
read*,ans
do i=2,N
  read*,T
  ans=ans*T/gcd(ans,T)
end do
print"(i0)",ans
contains
pure function gcd(a,b)
integer(16),intent(in)::a,b
integer(16) gcd
integer(16) s,t
s=a
gcd=b

t=mod(s,gcd)
do while(t/=0)
  s=gcd
  gcd=t
  t=mod(s,gcd)
end do
end function gcd
end