Some refactoring, and added a test for 9 (which currently fails
Complete prime factors kata. Glad I slept on it.