import java.util.Scanner

object Main extends App {
  var sc = new Scanner(System.in)
  var n = sc.nextInt
  var t = (0 until n).map(_ => sc.nextLong)

  var gcd: (Long, Long) => Long = (a, b) => if (b == 0) a else gcd(b, a % b)
  var lcm: (Long, Long) => Long = (a, b) => a / gcd(a, b) * b

  println(t.reduce(lcm))
}