Working exercise coded by me (Sieve of Erastosthenes algorithm from book)