Hacker News new | ask | show | jobs
by floxy 579 days ago
Also countPrimes() is side-effect free, and the value isn't used. So I wouldn't be surprised that at a high enough optimization level, that neither instance of countPrimes() is called for C or C++.
1 comments

Yeah, feel free to contribute / create a PR with a more C/C++ suited algorithm.