#include #define ll long long using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define rrep(i, n) for (int i = 1; i <= n; i++) ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; } ll lcm(ll a, ll b) { return (a * b) / gcd(a,b); } using P = pair ; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> n; vector b; for(int i = 100001;;i++){ if(sosu(i)) b.push_back(i); if(b.size()==4) break; } vector c; rep(i,b.size()){ rep(j,b.size()){ c.push_back(b[i]*b[j]); } } sort(c.begin(),c.end()); if(n==1) cout << 1<