improved sieve

converted from using a dict to a list to store possible prime values.