Completed Problem 7
Completed Problem 8
Completed Problem 9 - Reused isPrime in a list comprehension