-
-
Notifications
You must be signed in to change notification settings - Fork 45.7k
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
Performance: 58% faster Project Euler 070 #10558
Performance: 58% faster Project Euler 070 #10558
Conversation
@manpreetsingh2004 a good solution with filtering by prime numbers. Look at 072, I made it, you can probably apply it there too. |
Hi @quant12345, |
@manpreetsingh2004 now I checked it in Windows, it’s really an incorrect number if you don’t specify the type. I used your filtering(072) by prime numbers. And with this it’s faster, significantly. Below code: test
Output:
Here is a slightly faster implementation primes of primesfrom2to than 'your' primesfrom3to. |
@quant12345 |
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.
Thanks for contributing! I'm sorry if I was not clear but we should be updating existing solution to make it performant instead of adding new solution(s). The benchmarks can be added in the PR description instead of the code. We only want one solution in the code. Can you please update the code accordingly?
@dhruvmanila |
Hi @dhruvmanila, |
Describe your change:
#8594
Checklist: