import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);
//aryread!string();
//auto PS = new Tuple!(long,string)[](M);
//x[]=1;でlong[]全要素1に初期化
void main()
{
    // writeln(gcd(2, 3));
    // writeln((2 * 3) / gcd(2, 3));
    auto n = lread();
    auto t = new long[](n);
    foreach (i; 0 .. n)
    {
        long T;
        scan(T);
        t[i] = T;

    }
    // writeln(t);
    long gcd_ans = t[0];
    foreach (i; 1 .. n)
    {
        gcd_ans = gcd(gcd_ans, t[i]);
    }
    // writeln(gcd_ans);
    long lcm_ans = t[0];
    foreach (i; 1 .. n)
    {
        lcm_ans = lcm_ans * (t[i] / gcd(lcm_ans, t[i]));
    }
    writeln(lcm_ans);

    // writeln(ans);
}

long gcd(long a, long b)
{
    long tmp;
    if (a < b)
    {
        swap(a, b);
    }
    tmp = a % b;
    while (tmp != 0)
    {
        a = b;
        b = tmp;
        tmp = a % b;
    }
    return b;
}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}

void arywrite(T)(T a)
{
    a.map!text.join(' ').writeln;
}
