More efficient prime factor function
Problem 42
Problem 43
Problem 46
Problem 47
Problem 49