import scala.annotation.tailrec
import scala.io.StdIn._
object Main extends App {

  val n = readInt()
  println(Array.fill(n){readLong()}.reduce(lcm))
  @tailrec def gcd(a: Long, b: Long): Long = {
    b match {
      case 0 ⇒ a
      case _ ⇒ gcd(b, a % b)
    }
  }
  def lcm(a: Long, b: Long): Long = {
    a / gcd(a, b) * b
  }
}
