Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 329 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 329 Bytes

Code kata: Prime Factors

Description

This function breaks down a natural number into its prime factors and returns them in ascending order.

Example

1   // => [1]
2   // => [2]
3   // => [3]
8   // => [2,2,2]
24  // => [2,2,2,3]

Run project

Install

npm install

Run test

npm test