problem 50 initial attempt
Minor cleanup to primes
Working version of problem 50