Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ColinWright
on Oct 6, 2017
|
parent
|
context
|
favorite
| on:
Sieve of Eratosthenes in Python (2015)
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
IncRnd
on Oct 6, 2017
[–]
Good point. The loop's upper-bound check differs.
Thanks!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[0] https://news.ycombinator.com/item?id=15410300