code kata for prime factor