Return to Snippet

Revision: 27081
at May 21, 2010 10:48 by chroto


Initial Code
#!/usr/bin/python

# Project Euler - Problem 20
import math

print "\nProject Euler - Problem 20"
print " What is the sum of the digits of 100!?\n"

num = math.factorial(100)
sum = 0
str = str(num)

for x in str:
    sum += int(x)

print sum

Initial URL

                                

Initial Description

                                

Initial Title
Project Euler - Problem 20

Initial Tags

                                

Initial Language
Python