#include using namespace std; using ll = long long; using P = pair; #define fix(x) fixed << setprecision(x) #define asc(x) x, vector, greater #define rep(i, n) for(ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() templatebool chmin(T&a, const T&b){if(a>b){a=b;return 1;}return 0;} templatebool chmax(T&a, const T&b){if(a> t; const int x = 1e7; vector a(x+1,0); for(int i=2;i<=x;i++){ for(int j=i*2;j<=x;j+=i) a[j]++; } rep(i,x) a[i+1] += a[i]; rep(houren,t){ ll n; cin >> n; cout << a[n] + n*(n-1)/2 << '\n'; } return 0; }