Anonymous     Python     05 Sep 2011    
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
def mults(i):
divs = {}
for n in primes:
while not i % n:
if not n in divs:
divs[n] = 1
else:
divs[n] += 1
i = i / n
if i == 1:
return divs
divs[i] = 1
return divs