import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop; void main() { auto T = readln.chomp.to!int; while (T--) { auto X = readln.chomp.to!long; for (long i = 2; ; ++i) { if (X % i != 0) { writeln(X * i); break; } } } }