Initial attempt at prime factors exercise.