Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

this code solved the problem in under 1 second.

I would say for code that is executed one time ever, even including the sqrt(n) part is premature optimization (though I did include it)



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

Search: