#include using namespace std; #define bokusunny ios::sync_with_stdio(false), cin.tie(nullptr); bool is_prime(long long x) { if (x == 1) return false; long long i = 2; while (i * i <= x) { if (x % i == 0) return false; i++; } return true; } void solve() { int T; cin >> T; while (T--) { long long x; cin >> x; for (int p = 2; p <= 100; p++) { if (x % p != 0) { cout << x * p << endl; break; } } } } int main() { bokusunny; solve(); return 0; }