import java.util.Scanner

object Main {
    def main(args: Array[String]){
        val sc = new Scanner(System.in)
        val n = sc.nextInt
        val tlist = List.fill(n)(sc.nextLong)

        val ans = tlist.reduceLeft { (a, b) => lcm(a, b) }
        println(ans)
    }

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

    def lcm(a:Long, b:Long) :Long = {
        val c = gcd(a, b)
        if (c > 0) a / gcd(a, b) * b else 0
    }
}
