I am trying to come up with an efficient way to list all divisors of a big factorial. Let's say 1000!. It is quite impossible with brute force. Is there an efficient approach? I need to process them i.e. to find their sum for a programming challenge.
{2: 3, 3: 1}
because 24 is 2**3 * 3**1
.1000!
. This is the combination of the dictionaries of numbers <= 1000 combined by summing all the values for each of the keys (the primes).