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) {
    var n = timeList[0];
    for (var i = 1; i < timeList.length; i++) {
      n = lcm(n, timeList[i]);
    }
    ret = n;
  }
  console.log(ret);

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

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

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