Skip to content

Created problem_45 in project_euler and Speed Boost for problem_34/sol1.py #2349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Aug 25, 2020
Prev Previous commit
Next Next commit
Update project_euler/problem_34/sol1.py
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
Kush1101 and cclauss authored Aug 25, 2020
commit 136b05a57ca44879d13792221200cd9e92b155bb
2 changes: 1 addition & 1 deletion project_euler/problem_34/sol1.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def sum_of_digit_factorial(n: int) -> int:
1
"""
digits = list(map(int, str(n)))
summ = sum(factorial(digit) for digit in digits)
return sum(factorial(digit) for digit in digits)
return summ


Expand Down