Advertisement
benlloydjones

Project Euler 48

Jun 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def PE41(n):
  2.     addition = 0
  3.     for x in range(1, n + 1, 1):
  4.         addition += x**x
  5.     answer = str(addition)[-10:]
  6.     return answer
  7.  
  8. PE41(1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement