use array size consistently
solution to problem 3

re-factor sieve method to use a map . sped up sieve generation a bit.
sieve func does not work well for large numbers, for now it does the job
for the problem solution.