Skip to content

user01010011/project-euler-largest-prime-factor-v-000

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Euler

Problem: Largest Prime Factor

  • The prime factors of 13195 are 5, 7, 13 and 29. The largest prime factor in this case is 29.
  • What is the largest prime factor of the number 600851475143 ?

Instructions

  • Code your procedural solution into the lib/largest_prime_factor.rb file.
  • Code your object-oriented solution into the lib/oo_largest_prime_factor.rb file. Make sure that you set the largest prime factor equal to the number attribute of the LargestPrimeFactor class.
  • Run learn until you get all of the RSpec tests to pass.

Source

View Project Euler on Learn.co and start learning to code for free.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%