object Main {
  def main(args: Array[String]): Unit = {
    val _ = io.StdIn.readInt()
    val an: Iterator[Int] = io.StdIn.readLine().split(" ").map(_.toInt).toIterator
    var acc = an.next()
    while(an.hasNext) acc = lcm(acc, an.next())
    println(acc)
  }
  def lcm(m: Int, n: Int): Int = (m * n) / gcd(m, n)
  def gcd(x: Int, y: Int): Int = {
    var (m, n) = if (x < y) (y, x) else (x, y)
    while(n > 0) {
      val tmp = m
      m = n
      n = tmp % n
    }
    m
  }
}