The Wayback Machine - https://web.archive.org/web/20201008213140/https://github.com/TheAlgorithms/Python/pull/2998/files
Skip to content
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

Hacktoberfest 2020: Add solution method for project_euler/problem_37 #2998

Merged
merged 2 commits into from Oct 8, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
@@ -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)) = }")
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.