Skip to content

feat: add Project Euler problem 073 solution 1 #6273

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
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
Change tests
  • Loading branch information
MaximSmolskiy authored Oct 24, 2022
commit 11268e343036dbf4aea229034b6ba8268f4ca71a
6 changes: 3 additions & 3 deletions project_euler/problem_073/sol1.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def solution(max_d: int = 12_000) -> int:
Returns number of fractions lie between 1/3 and 1/2 in the sorted set
of reduced proper fractions for d ≤ max_d

>>> solution(0)
>>> solution(4)
0

>>> solution(1)
0
>>> solution(5)
1

>>> solution(8)
3
Expand Down