Sieve of Eratosthenes for counting i'th prime number