example-apps / largest_prime

Find the largest prime factor of a number

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

largest_prime

Find the largest prime factor of a number

This is a code challenge anyone can join in. The goal is to find the largest prime factor of a number.

Example

The largest prime factor of 13195 is 29, while the largest prime factor of 5 is 5 What is it for number 'x'

Requirements

  • find the greastest prime number of any given number
  • only return the greatest number
  • in your solutions ReadMe explain how to interact with your solution

Submission

They are due by End of Day May 31st. Then the next challenge will be listed.

To create a sumbission:

  • fork this repo into your personal github account.
  • in the new repo on your account create a folder with your name and develop your solution.
  • once done submit a pull request back into this repo
  • bask in the glory of you contributing code

Also rspec tests are enouraged highly.

  • If you want an easy way to get started with rsepc and some other starter files feel free to clone this repo

After you submit your solution if you want to see the rating of your code visit Code Climate

About

Find the largest prime factor of a number


Languages

Language:Ruby 100.0%