Permalink
Browse files

Edited python_code/complete/no048 via GitHub

  • Loading branch information...
1 parent 0456e11 commit 9ec0286cf01f9c8f4b0bd537bf3758646a42330f @dhermes committed Jun 14, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 python_code/complete/no048
View
3 python_code/complete/no048 100755 → 100644
@@ -3,13 +3,12 @@
# Find the last ten digits of the series 1^1 + 2^2 + 3^3 + ... + 1000^1000.
from python_code.decorators import euler_timer
-from python_code.functions import modular_exponentiate
@euler_timer(48)
def main():
result = 0
for i in range(1, 1000 + 1):
- result = (result + modular_exponentiate(i, i, 10**10)) % 10**10
+ result = (result + pow(i, i, 10**10)) % 10**10
print result
if __name__ == "__main__":

0 comments on commit 9ec0286

Please sign in to comment.