log = console.log;

var stdin = require("fs").readFileSync("/dev/stdin", "UTF-8");
var lines = stdin.split("\n");
var N = lines[0].split(" ").map(Number)[0];
var T = lines
  .slice(1)
  .filter(v => v !== "")
  .map(Number);

function gcd(a,b){
  if(b === 0) return a
  return gcd(b,a % b)
}

function lcm(a,b){
  return a * b / gcd(a,b)
}

function count(ary){
  if(ary.length === 1) return ary[0]
  if(ary.length === 2) return lcm(ary[0],ary[1])
  return lcm(ary[0],count(ary.slice(1)))
}

log(count(T))