Y
Hacker News
new
|
ask
|
show
|
jobs
by
quadyeast
3396 days ago
<= instead of < would make the first few numbers come out correctly:
for(var n=2; n <= Math.floor(Math.sqrt(candidate)); n++)