Sieve of Eratosthenes (3.sql)