#include using namespace std; using Int = long long; const char newl = '\n'; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a void drop(const T &x){cout< vector read(size_t n){ vector ts(n); for(size_t i=0;i>ts[i]; return ts; } vector totient_table(Int n){ vector ts(n+1); iota(ts.begin(),ts.end(),0); for(Int i=2;i<=n;i++){ if(ts[i]!=i) continue; for(Int j=i;j<=n;j+=i) ts[j]=ts[j]/i*(i-1); } return ts; } //INSERT ABOVE HERE signed main(){ cin.tie(0); ios::sync_with_stdio(0); const Int MAX = 1e7+10; auto ts=totient_table(MAX); for(Int i=1;i<(Int)ts.size();i++) ts[i]+=ts[i-1]; Int T; cin>>T; while(T--){ Int n; cin>>n; cout<