Stores the power to which primefactor i is raised
let count = 0 ; while ( K_temp % i == 0 ) { K_temp = Math . floor ( K_temp / i ) ; count ++ ; } if ( count > 0 ) primefactors . push ( [ count , i ] ) ; } if ( K_temp != 1 ) primefactors . push ( [ 1 , K_temp ] ) ;