#include using namespace std; #define ALL(x) x.begin(),x.end() #define rep(i,n) for(int i=0;i<(n);i++) #define debug(v) cout<<#v<<":";for(auto x:v){cout<bool chmax(T &a,const T &b){if(abool chmin(T &a,const T &b){if(b>n; ull ans=n*n+(n-1)*n; set checked; for(ull i=2;i*i<=n;i++){ if(checked.count(i)) continue; int k=1; ull pl=0; for(ull j=i*i;j<=n;j*=i) k++,checked.insert(j); for(ull x=1;x<=k;x++){ for(ull y=x+1;y<=k;y++){ ull l=lcm(x,y); ull an=n*x; pl+=2*(an/l); } } ans+=pl; } cout<>q; while(q--) solve(); return 0; }