Skip to content

Conversation

Jam-Hejrati
Copy link

added two conditions for checking 2 and 3 numbers & even numbers
change loop steps * 2
result: 2 times faster (in every languages like Js)

@ali77gh
Copy link
Owner

ali77gh commented Apr 29, 2023

Thanks for your PR. That's actually so smart.
But I can't merge it because you changed the algorithm and its against rules.
I'm so sorry but the repo is not about optimizing algorithms, its about how fast programming languages are.
And I also trying to keep it simple as possible, so its easy to implement in for example assembly.

I'm so sorry and I hope you understand.

@ali77gh ali77gh closed this Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants