How many primes are there under 31032001?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I used Sieve of Eratosthenes (with some optimizations) because it's easy to implement. Weird thing with this code is that it's actually pretty fast.
Takes about 0.47 secs.