Uncle Bob's Code Kata for prime factors