8000 Added solution for Project Euler problem 129. by fpringle · Pull Request #3113 · TheAlgorithms/Python · GitHub
[go: up one dir, main page]

Skip to content

Added solution for Project Euler problem 129. #3113

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

Merged
merged 4 commits into from
Nov 21, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update formatting. Reference: #3256
  • Loading branch information
fpringle committed Oct 15, 2020
commit a67afe7e326d1630b0cb69e3eb4c85acefa8e0dd
4 changes: 3 additions & 1 deletion project_euler/problem_129/sol1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""
Project Euler Problem 129: https://projecteuler.net/problem=129

A number consisting entirely of ones is called a repunit. We shall define R(k) to be
a repunit of length k; for example, R(6) = 111111.

Expand Down Expand Up @@ -45,4 +47,4 @@ def solution(limit: int = 1000000) -> int:


if __name__ == "__main__":
print(solution())
print(f"{solution() = }")
0