-
-
Save abdollar/1449318 to your computer and use it in GitHub Desktop.
What is the largest prime factor of the number 600851475143 ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
octave:2> max(factor(600851475143)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'prime' | |
600851475143.prime_division.flatten.uniq.sort.last |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment