[C++] Implementation sieve of eratosthenes.