adding problem 7 and an optimal prime finder at Kth index