Base update and sieve of Eratosthenes