object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  val t = List.fill(n)(sc.nextLong())

  def gcd(a: Long, b: Long): Long = {
    if (b == 0) a else gcd(b, a % b)
  }

  def lcm(a: Long, b: Long): Long = {
    (a / gcd(a, b)) * b
  }

  println(t.reduceLeft(lcm))
}
