Changed prime sieve and rectified idiocy in Problem 7 code