function Main(input) {
  var inputList = input.split("\n");
  var N = Number(inputList[0]);
  var timeList = [];
  for (var i = 0; i < N; i++) {
    timeList[i] = Number(inputList[i + 1])
  }

  var ret;
  if (timeList.length == 1) {
    ret = timeList[0];
  } else if (timeList.length == 2) {
    ret = lcm2(timeList[0], timeList[1]);
  } else if (timeList.length >= 3) {
    ret = lcm3.apply(this, timeList);
  }
  console.log(ret);

  function lcm2(a,b) {
    var g = (n, m) => m ? g(m, n % m) : n
    return a * b / g(a, b)
  }

  function lcm3() {
    var a = arguments
    var g = (n, m) => m ? g(m, n % m) : n
    var l = (n, m) => n * m / g(n, m)
    var ans = a[0]

    for (var i = 1; i < a.length; i++) {
      ans = l(ans, a[i])
    }
    return ans
  }
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'));