Skip to content

Instantly share code, notes, and snippets.

@mavant
Created November 22, 2013 00:54
Show Gist options
  • Save mavant/7592810 to your computer and use it in GitHub Desktop.
Save mavant/7592810 to your computer and use it in GitHub Desktop.
Project Euler problem 20
import math
a = math.factorial(100)
b = str(a)
d = 0
for c in b:
d += int(c)
print (d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment