Prime numbers by using the sieve method of Eratosthenes