Performance: 58% faster Project Euler 070#10558
Performance: 58% faster Project Euler 070#10558ManpreetXSingh wants to merge 14 commits intoTheAlgorithms:masterfrom ManpreetXSingh:performance-project-euler-070
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: testOutput: Here is a slightly faster implementation primes of primesfrom2to than 'your' primesfrom3to. |
|
@quant12345 |
dhruvmanila
left a comment
There was a problem hiding this comment.
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: