A code kata is an exercise in programming which helps a programmer hone their skills through practice and repetition.
https://en.wikipedia.org/wiki/Kata_(programming)
Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: first the developer writes an (initially failing) automated test case that defines a desired improvement or new function, then produces the minimum amount of code to pass that test, and finally refactors the new code to acceptable standards.
https://en.wikipedia.org/wiki/Test-driven_development
The aim of the Prime Factors code kata is to caculate the prime factors of a given number.
- There are no prime factors of 1
- Prime factors of 2 is 2
- Prime factors of 3 is 3
- Prime factors of 5 is 5
- Prime factors of 9 is 3, 3
- Prime factors of 100 is 2, 2, 5, 5
- Prime factors of 1024 is 2, 2, 2, 2, 2, 2, 2, 2, 2, 2