Solution to problem 16.
Solution to problem 13.
Solution to problem 3.

TODO: Currently using Prime class, try to do without