#Lutece2965. 找到最小的数

找到最小的数

Migrated from Lutece 2965 找到最小的数

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

给定一个正整数aa。求一个最小的正整数xx,满足xx至少有四个因数,且其中任意两个因数的差大于等于aa

Input

第一行包含一个整数TT,表示一共有TT组数据。 接下来TT行,每行描述了一组数据,包含一个整数aa

Output

对于每组数据,输出一行一个整数,表示符合条件的最小正整数xx

Samples

输入数据 1

2
2
1

输出数据 1

15
6

Constraints

1T51031\le T \le 5*10^3 1a1041\le a \le 10^4