-
-
Notifications
You must be signed in to change notification settings - Fork 46.1k
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
Added solution for Project Euler problem 72 #3122
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Announcement:
This message is sent to all pull requests which are OPEN, NOT MERGED, not containing 'wontfix' label and contains 'Project Euler' or 'Project' or 'Euler' (case doesn't matter) in their title. If this message doesn't apply to your pull request, please ignore this.
Message:
This is to notify all the users submitting a pull request for the Project Euler solution that the README.md file has been updated with all the style requirements necessary for the directory and solution files. Please read through it and make all the necessary changes required to your submission.
Um, you just deleted the old problem and replaced it with your own. As of now, we are only accepting solutions to problems that do not exist in this repository and you need to stop making multiple pull request. Please only submit one PR at a time. |
My solution was added 6 days ago, the solution that I just deleted was added 3 days ago but merged before mine. |
Then please change the file name for your solution to |
You're deleting the first solution. Please revert it back. |
Apologies for the hastle, I'm new to contributing! |
You follow the guidelines perfectly well and so it is easier to review :) |
Sure thing - I can see now why multiple pull requests can be annoying 🤣 |
* Added solution for Project Euler problem 72. * Update type annotations and 0-padding of the directory name. Reference: TheAlgorithms#3256 * Rename sol1.py to sol2.py * Added newline at the end of sol2.py * Revert sol1.py
* Added solution for Project Euler problem 72. * Update type annotations and 0-padding of the directory name. Reference: TheAlgorithms#3256 * Rename sol1.py to sol2.py * Added newline at the end of sol2.py * Revert sol1.py
Name: Counting fractions
Consider the fraction, n/d, where n and d are positive integers. If n<d and HCF(n,d)=1, it is called a reduced proper fraction.
If we list the set of reduced proper fractions for d ≤ 8 in ascending order of size, we get:
1/8, 1/7, 1/6, 1/5, 1/4, 2/7, 1/3, 3/8, 2/5, 3/7, 1/2, 4/7, 3/5, 5/8, 2/3, 5/7, 3/4, 4/5, 5/6, 6/7, 7/8
It can be seen that there are 21 elements in this set.
How many elements would be contained in the set of reduced proper fractions for d ≤ 1,000,000?
Reference: https://projecteuler.net/problem=72
Reference: #2695
Checklist:
Fixes: #{$ISSUE_NO}
.