#include<stdio.h>
unsigned long long getgcd(unsigned long long x,unsigned long long y);
int main()
{
	unsigned long long a[10000],num,p,t;
	int n,i,j;
	while(scanf("%d",&n)!=EOF)
	{
		for(i=1;i<=n;i++)
		scanf("%llu",&a[i]);
		num=a[1];
		for(j=2;j<=n;j++)
		{
			if(num<a[j])
			{
				t=num;
				num=a[j];
				a[j]=t;
			}
			p=getgcd(num,a[j]);
			num=(num*a[j])/p;
		}
		printf("%llu\n",num); 
	}
	return 0;
 } 
unsigned long long getgcd(unsigned long long x,unsigned long long y)
 {
 	if(x%y==0)
 	return y;
 	else
 	return getgcd(y,x%y);
 }