Skip to content

Commit 42c1887

Browse files
Kush1101cclauss
andauthored
Update project_euler/problem_34/sol1.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 2b581f7 commit 42c1887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_euler/problem_34/sol1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def compute() -> int:
2929
40730
3030
"""
3131
limit = 7 * factorial(9)
32-
nums = [num for num in range(3, limit) if sum_of_digit_factorial(num) == num]
32+
return sum(i for i in range(3, limit) if sum_of_digit_factorial(i) == i)
3333
return sum(nums)
3434

3535

0 commit comments

Comments
 (0)