Day 4: Fixed up a simple prime factor solution