some changes to sieve of erathos: implementation