solution 10 + Eratosthenes sieve