#include<cstdio>
#include<cstring>
#include<algorithm>
#define ll long long
using namespace std;
ll n,a,s;
ll gcd(ll a,ll b){return b==0?a:gcd(b,a%b);}
int main()
{
	int n;
	scanf("%lld%lld",&n,&s);
	for(int i=2;i<=n;i++)
	{
		scanf("%lld",&a);
		s=s/gcd(s,a)*a;
	}
	printf("%lld",s);
	return 0;
}