Added prime ranges, fixed sieve in previous