2 ms·
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
by floxy 2y 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++.
- Osiris-Team 2y agoYeah, feel free to contribute / create a PR with a more C/C++ suited algorithm.