"use strict";
const Main = (input) =>{
   let xs = input.split("\n");
   let xs1 = xs[0].trim().split(' ').map(v=>parseInt(v,10));
　 let N = xs1[0]; 
   let r = 0;
   let d = 0;
   let ans = 1;

   for(let i=1; i<N+1; i++){
        let x = xs[i];
        let y = ans;
        let n = xs[i];
        let m = ans;
            if(m >= n) {
        	while (n > 0) {
        		let r = m % n; 
        		m = n;     
        		n = r;     
        	}
        	d = m;
            }else{ 
        	while (m > 0) {
        		r = n % m; 
        		n = m;     
        		m = r;     
        	}
        	d = n;
            }
            ans = (x*y/d);
            //console.log(ans);
   }
   console.log(ans);
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));


