-
-
Notifications
You must be signed in to change notification settings - Fork 46.2k
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
Add Project Euler problem 187 solution 1 #8182
Add Project Euler problem 187 solution 1 #8182
Conversation
for more information, see https://pre-commit.ci
Any way this could be optimized? It's taking roughly 22 seconds. |
@dhruvmanila I optimized solution (used the fact that least prime number is 2, so the greatest prime number should be less than max_number / 2) P. S. Now I have issues with ruff check, but it seems that it isn't related to this PR |
@dhruvmanila please merge, failed checks were fixed by merging with |
Merging it as it is, still taking roughly 7 seconds! I'll open an issue for this if someone wants to take a stab at it. |
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Describe your change:
Add Project Euler problem 187 solution 1:
Checklist:
Fixes: #{$ISSUE_NO}
.