determine the prime factors multiplicity of a given integer