mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-27 17:06:44 +00:00
Add solution method for project_euler/problem_37 (#2998)
* add solution method * fix formatting
This commit is contained in:
parent
f3fe29cea1
commit
6541236fdf
@ -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)) = }")
|
||||
|
Loading…
x
Reference in New Issue
Block a user