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

Well if I wasn't so lazy, it would be easy to implement a Sieve of Eratosthenes algorithm yielding a list of primes up to some number, and then another function feeding 1000000 to that function and returning the length of the resulting list. The hard part would be actually proving the theorem I stated in terms of those two functions.


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

Search: