Skip to content

afrihost/prime-factors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prime Factors Code Kata

Code Kata

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)

TDD

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

Prime Factors

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

Optional

  • Prime factors of 1024 is 2, 2, 2, 2, 2, 2, 2, 2, 2, 2

https://en.wikipedia.org/wiki/Prime_factor

About

Prime Factors Code Kata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages