function gcd(m, n) { return n === 0 ? m : gcd(n, m % n); }
function lcm(m, n) { return m * n / gcd(m, n); }
process.stdin.setEncoding('utf8');
var temp = 1;
let flag = 1;
let i = 0;
var count = 0;
let chunk;
process.stdin.on('readable', function() {
	var chunk = process.stdin.read();
    if(chunk !== null){
	  	if(flag){
		  	flag = 0;
		  	count = chunk;
		  	return;
		}
		if (i<count) {
			chunk = parseInt(chunk);
		    temp = chunk / gcd(chunk,temp) * temp;
		    i++;
		}
		if(i==count){
		  	console.log(temp);
		  	process.exit();
		}
	}
});
