• + 0 comments
    x = int(input()) - 1
    given = list(map(int, input().split(" ")))
    a = 1
    while True:
        count = 0
        for num in given:
            if num % a == 0:
                count += 1
        if count == x:
            print(a)
            break
        a += 1