The arr1 [ ] and arr2 [ ] used to store all the factors of N
let arr1 = new Array ( MAX ) ; let arr2 = new Array ( MAX ) ; for ( let i = 0 ; i < MAX ; i ++ ) { arr1 [ i ] = 0 ; arr2 [ i ] = 0 ; } let l1 , l2 ; l1 = l2 = 1 ;