时间复杂度:O(√N)
int factor[1600], m = 0; for(int i = 1; i * i <= n; i ++ ){ if(n % i == 0){ factor[++m] = i; if(n/i != i) factor[++m] = n/i; } }