updated prime sieves and completed problem 7