Skip to content

JrDevJobs/PrimeFactors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

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

About

Challenge: Compute the prime factors of a natural number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published