cleaned up gtw's problem 3 to run more efficiently and better primeNumber check