attempting to correctly implement sieve of erasthenes