Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion project_euler/problem_034/sol1.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def solution() -> int:
>>> solution()
40730
"""
limit = 7 * factorial(9) + 1
# The upper bound is 1,499,999, as shown in this proof:
# https://rosettacode.org/wiki/Talk:Factorions
limit = 1_499_999
return sum(i for i in range(3, limit) if sum_of_digit_factorial(i) == i)


Expand Down