coderbyte sample2

This program should test for primes. I know I need some practice in
refactoring. Hopefully I have time to come back to these later to do so.