#include<iostream>
using namespace std;
//习题6.7 约数的个数
int main()
{
int n;
while (cin >> n) {
for (int j = 0; j < n; j++) {
int temp;
cin >> temp;
int i = 1, res = 0;
for (i = 1; i * i < temp; i++) {
if (temp % i == 0) {
res += 2;
}
}
if (i * i == temp) {
res++;
}
cout << res << endl;
}
}
return 0;
}

京公网安备 11010502036488号