N = int(input())
A = list(map(int, input().split()))


def get_lcm(M: int, N: int) -> int:
    m, n = max(M, N), min(M, N)
    while n:
        m, n = max(m % n, n), min(m % n, n)
    gcd = m
    return M * N // gcd


lcm = A[0]
for i in range(1, len(A)):
    lcm = get_lcm(lcm, A[i])

print(lcm)
