Hacker News new | past | comments | ask | show | jobs | submit login

I was wrong when I claimed the output would be wrong - see my comments here[0]. The output is correct, but the code is not the Sieve of Eratosthenes. I was misled by the expectation that it would be.

[0] https://news.ycombinator.com/item?id=15410300




Good point. The loop's upper-bound check differs.

Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: