Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
floxy
· 2y ago · 0 comments
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++.
Comments
[–]
Osiris-Team
2y ago
Yeah, feel free to contribute / create a PR with a more C/C++ suited algorithm.