prime [ ] for storing smallest prime divisor of element count [ ] for storing the number of times a particular divisor occurs in a subsequence
let prime = new Array ( MAX + 1 ) ; let countdiv = new Array ( MAX + 1 ) ; for ( let i = 0 ; i < MAX + 1 ; i ++ ) { prime [ i ] = 0 ; countdiv [ i ] = 0 ; }