generate prime factors of number upto 10 ^ 6
generatePrimeFactors ( ) ; var a = [ 10 , 30 , 100 , 450 , 987 ] ; var q = a . length ; for ( i = 0 ; i < q ; i ++ ) document . write ( calculateNoOFactors ( a [ i ] ) + " " ) ;