mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08: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…
Reference in New Issue
Block a user