for _ in range(int(input())): x = int(input()) for i in range(x): if x % i != 0: print(x * i) break