We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3fe29c commit 6541236Copy full SHA for 6541236
project_euler/problem_37/sol1.py
@@ -87,5 +87,12 @@ def compute_truncated_primes(count: int = 11) -> list[int]:
87
return list_truncated_primes
88
89
90
+def solution() -> int:
91
+ """
92
+ Returns the sum of truncated primes
93
94
+ return sum(compute_truncated_primes(11))
95
+
96
97
if __name__ == "__main__":
98
print(f"{sum(compute_truncated_primes(11)) = }")
0 commit comments