"use strict";

const gcd = (x, y) => { // ユークリッドの互除法
    if (y === 0) {
        return x;
    } else {
        return gcd(y, x%y);
    }
}

const smallestCommons = arr => {
    const range = [];
    
    for (let i=Math.max(arr[0], arr[1]); i>=Math.min(arr[0], arr[1]); i--) {
        range.push(i);
    }

    return range.reduce(function(previousValue, currentValue) {
        const gcdPrevCurr = gcd(previousValue, currentValue);
        return (previousValue * currentValue) / gcdPrevCurr;
    });
}
    
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(smallestCommons(T));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));