Interactive serial implementation of the Sieve of Eratosthenes