function gcd(x, y) {
    if (y === 0){
        return x;
    } else {
        return gcd(y, x % y);
    }
};

/**
 * @param {String} input
 */
function Main(input){
    var inputs = input.split("\n").map(function(num){return +num;});
    var clockNum = inputs.shift();
    var T = inputs.sort(function(a,b){return Number(a)-Number(b);});
    if(clockNum === 1){
        return T[0];
    }
    var max = T[0];
    var T2 = T.filter(function(num){
    	if(num % T[0] === 0) max = num;
    	return num % T[0] !== 0;
	});
    if(T2.length === 0){
    	return T[T.length-1];
    }
    T2.push(max);
    return T2
    .reduce(function(previousValue, currentValue) {
        var gcdPrevCurr = gcd(previousValue, currentValue);
        return (previousValue * currentValue) / gcdPrevCurr;
    });
}
console.log(Main(require("fs").readFileSync("/dev/stdin", "utf8")));