code: def small_factors(x, max_prime):
          
          factors = DlogFprint.prime_factors(x, limit=max_prime)
          return DlogFprint.factor_list_to_map(factors)
docs: Factorizing x up to max_prime limit.
          :param x:
          :param max_prime:
          :return: