Find the count of prime factors of b using distinct prime factors of a
ma . forEach ( ( values , keys ) => { let cnt = 0 ; let key = keys ; let value = values ; while ( b % key == 0 ) { b = parseInt ( b / key , 10 ) ; cnt ++ ; }