Advanced algorithm: the Sieve of Eratosthenes