Speeds up problem 12 but found bug with prime factorization.
Fix bug with prime factorization and remove puts statements in number 12.