import sys

from functools import reduce



def gcd(a, b):

    while b:

        a, b = b, a % b

    return abs(a)



def lcm(a, b):

    return abs(a // gcd(a, b) * b)



n, *t = list(map(int, sys.stdin.read().split()))



def main():

    return reduce(lcm, t)



if __name__ == '__main__':

    ans = main()

    print(ans)
import sys



def gcd(a, b): return gcd(b, a % b) if b else abs(a)

def lcm(a, b): return abs(a // gcd(a, b) * b)



n, *t = list(map(int, sys.stdin.read().split()))



def main():

    res = 1

    for x in t:

        res = lcm(res, x)

    print(res)



if __name__ ==  '__main__':

    main()
import sys
from functools import reduce


def gcd(a, b):
    while b:
        a, b = b, a % b
    return abs(a)


def lcm(a, b):
    return abs(a // gcd(a, b) * b)


n, *t = list(map(int, sys.stdin.read().split()))


def main():
    return reduce(lcm, t)


if __name__ == "__main__":
    ans = main()
    print(ans)

import sys


def gcd(a, b):
    return gcd(b, a % b) if b else abs(a)


def lcm(a, b):
    return abs(a // gcd(a, b) * b)


n, *t = list(map(int, sys.stdin.read().split()))


def main():
    res = 1
    for x in t:
        res = lcm(res, x)
    print(res)


if __name__ == "__main__":
    main()

-from functools import reduce -    while b: -        a, b = b, a % b -    return abs(a) +    return gcd(b, a % b) if b else abs(a) -    return reduce(lcm, t) +    res = 1 +    for x in t: +        res = lcm(res, x) +    print(res) -    ans = main() -    print(ans) +    main()