#import <stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
typedef long long INT;

INT GCD(INT a, INT b){
    INT M = MAX(a, b);
    INT m = MIN(a, b);
    while (1) {
        INT r = M % m;
        if (r==0) break;
        M = m;
        m = r;
    }
    return m;
}

int main(){
    INT N;
    INT g = 1;
    scanf("%lld",&N);
    for(INT i=0;i<N;i++){
        INT t;
        scanf("%lld",&t);
        g = t/GCD(t,g) * g;
    }
    printf("%lld", g);
}
