Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.12 KB

README.md

File metadata and controls

33 lines (20 loc) · 1.12 KB

Jr.DevJobs Challenge: Prime Factors

Introduction

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.

Getting Started

To begin, Fork this repository to your GitHub account by clicking the Fork icon in the upper-right section of this page.

Forking Image

If you're new to Forking, we suggest reading the GitHub documentation before moving forward.

User Story

As a user, I want to know the prime factors of a natural number.

Details

  • Should only process whole numbers, greater than 0

Examples

  • 16: 2, 2, 2, 2
  • 125: 5, 5, 5
  • 1,244: 2, 2, 311

Tests

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