Adopted new convention from template
This commit is contained in:
parent
6fd86f8cde
commit
d464a0f434
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Created on 12 Sep 2021
|
||||
|
||||
@ -19,10 +19,10 @@ def compute():
|
||||
|
||||
Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000.
|
||||
"""
|
||||
|
||||
series = sum(i**i for i in range(1, 1001))
|
||||
return str(series)[-10:]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
print(f"Result for Problem 48: {compute()}")
|
||||
print(f"Result for Problem 48 is {compute()}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user