diff --git a/project_euler/problem_37/sol1.py b/project_euler/problem_37/sol1.py index e3aec5a84..5423aac37 100644 --- a/project_euler/problem_37/sol1.py +++ b/project_euler/problem_37/sol1.py @@ -87,5 +87,12 @@ def compute_truncated_primes(count: int = 11) -> list[int]: return list_truncated_primes +def solution() -> int: + """ + Returns the sum of truncated primes + """ + return sum(compute_truncated_primes(11)) + + if __name__ == "__main__": print(f"{sum(compute_truncated_primes(11)) = }")