Skip to content

Commit

Permalink
p48 in python
Browse files Browse the repository at this point in the history
  • Loading branch information
randm989 committed Mar 15, 2013
1 parent 6e402f3 commit d20d011
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/p48.py
@@ -0,0 +1,8 @@
#!/usr/bin/python

result = 0

for i in xrange(1,1001):
result += i**i
result %= 10**10
print i,result

0 comments on commit d20d011

Please sign in to comment.