[题目通道](H(n) - 洛谷)
#include<bits/stdc++.h>
#define int long long
#define fast register int
using namespace std;
int f(int n){
int m=sqrt(n),ans=0;
for(fast i=1;i<=m;i++)ans+=n/i;
return ans*2-m*m;
}
signed main()
{
int n;
cin>>n;
while (n--){
int zzz;
cin>>zzz;
cout<<f(zzz)<<endl;
}
return 0;
}