Javascript program to find maximum number of prime factors for a number in range [ 1 , N ]
function getMax ( Arr ) { let max = Arr [ 0 ] ; for ( let i = 1 ; i < Arr . length ; i ++ ) if ( Arr [ i ] > max ) max = Arr [ i ] ; return max ; }