Returns the number of primes before int N.

This is my implementation of a programming internship practice test problem from some game company. I used the sieve of eratosthenes I saw on wiki once.