Fix a bug in PrimeFactors().
Project Euler 69.
Minor cleanups.