Using sieve via while loops