hdarwin

cstutoringcenter.com_A Very Large Factorial

Jan 4th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. import math
  2.  
  3. sum = 0
  4. for x in str(math.factorial(1000)):
  5.     sum += int(x)
  6. print sum
Advertisement
Add Comment
Please, Sign In to add comment