"use strict";

function lcm(array) {
    const a = array;
    const g = (n, m) => m ? g(m, n % m) : n;
    const l = (n, m) => n * m / g(n, m);
    let ans = a[0];

    for (let i=1; i<a.length; i++) {
        ans = l(ans, a[i]);
    }
    
    return ans;
} 
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0]);
    const T = arg.slice(1, N + 1).map(n=>parseInt(n));
    
    console.log(lcm(T));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));