Created a prime number lib; solved number 5

The prime number lib is slow, experimental, and needs a lot of
functionality to be used, but it at least behaves correctly, despite how
slow it is. For small sets of prime numbers, it's great. Problem number
five relied on prime factors, and was a great use case for it.