push all the factors in the container
for ( let i = 1 ; i <= Math . floor ( Math . sqrt ( n ) ) ; i ++ ) { if ( n % i == 0 ) { v . push ( i ) ; if ( i != Math . floor ( n / i ) && i != 1 ) v . push ( Math . floor ( n / i ) ) ; } }