process.stdin.resume();
process.stdin.setEncoding('utf8');
function gcd(x, y) {
	if (y == 0) {
		return x;
	}
	else {
		return gcd(y, x % y);
	}
}
process.stdin.on('data', function (chunk) {
    var lines = chunk.toString().split('\n');
    var N = lines[0];
    var ans=lines[1]*lines[2]/gcd(lines[1],lines[2]);
    for(var i=0; i<N; i++) {
        ans=ans*lines[i+1]/gcd(ans,lines[i+1]);
    }
    console.log('%d',ans);
});