Skip to content

Commit a2cba40

Browse files
atarax665stokhos
authored andcommitted
Update sol1.py (TheAlgorithms#2455)
1 parent 5c82605 commit a2cba40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: project_euler/problem_48/sol1.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
Self Powers
33
Problem 48
44
5-
The series, 11 + 22 + 33 + ... + 1010 = 10405071317.
5+
The series, 1^1 + 2^2 + 3^3 + ... + 10^10 = 10405071317.
66
7-
Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000.
7+
Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000.
88
"""
99

1010

1111
def solution():
12-
"""Returns the last 10 digits of the series, 11 + 22 + 33 + ... + 10001000.
12+
"""
13+
Returns the last 10 digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000.
1314
1415
>>> solution()
1516
'9110846700'

0 commit comments

Comments
 (0)