Jr.DevJobs Challenge: Prime Factors
In this challenge you will create a webpage or algorithm that returns the prime factors of a given natural number.
You are free to do this in any language or framework, however the sample is written in Ruby.
To begin, Fork this repository to your GitHub account by clicking the Fork icon in the upper-right section of this page.
If you're new to Forking, we suggest reading the GitHub documentation before moving forward.
As a user, I want to know the prime factors of a natural number.
- Should only process whole numbers, greater than 0
- 16: 2, 2, 2, 2
- 125: 5, 5, 5
- 1,244: 2, 2, 311
We've included specs to test your code using RSpec.
- To run the tests, you have to install the rspec gem,
gem install rspec
- Then run
rspec
in the terminal