/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: main.cpp * Author: cteam045 * * Created on December 2, 2018, 9:36 AM */ #include #include #include #include #include #include using namespace std; long long solve(int n) { long long k = 0; int sn = sqrt(n); for(int a = 1; a <= sn; ++a) { for (int b = a+1; b <= sn; ++b) { int temp = n/(a*b) - b; if (temp < 0) break; else k+= n/(a*b) - b; } } return k; } int main(int argc, char** argv) { int T; cin >> T; int N; for (int i = 0; i < T; ++i) { cin >> N; cout << solve(N) << endl; } return 0; }