Solved Problem 10 and modified prime library functions.