- 10,759

- 7,389

Not sure what the string means, as there are plenty of primes in ##1000!##. Each prime below ##1000## occurs at least once, and the smaller primes do occur quite often. Fortunately, we are only interested in two primes.import math

def primeFactors(n):

while n % 2 == 0:

print 2,

n = n / 2

for i in range(3,int(math.sqrt(n))+1,2):

while n % i== 0:

print i,

n = n / i

if n > 2:

print n

(primeFactors(math.factorial(1000)))

2 2 13 107 36791