generate prime factors of number upto 10 ^ 6
generatePrimeFactors ( ) ; int a [ ] = { 10 , 30 , 100 , 450 , 987 } ; int q = sizeof ( a ) / sizeof ( a [ 0 ] ) ; for ( int i = 0 ; i < q ; i ++ ) cout << calculateNoOFactors ( a [ i ] ) << " ▁ " ; return 0 ; }