Add basePrime method and documentation
Completed problem 6
Updated utilities and refactored prob 5
Completed refactoring