#include<stdio.h>
/*** 求两个数的最大公倍数* @param a* @param b* @return*/
int gcd(int a,int b){if(b==0) return a;return gcd(b,a%b);
}
int main() {int n = 0, a = 0, tmp = 0, result = 0, c=0;while (scanf("%d", &n) != EOF) {scanf("%d", &a);for (int i = 0; i <= n - 2; i++) {scanf("%d", &tmp);c = gcd(a, tmp);a = a / c * tmp;}printf("%d\n", a);}return 0;
}