Sunday, September 13, 2009

Project Euler Problem 3

At this point, it's only a matter of figuring out which function to use.


Problem 3
02 November 2001

The prime factors of 13195 are 5, 7, 13 and 29.

What is the largest prime factor of the number 600851475143 ?

FactorInteger[13195]

{{5, 1}, {7, 1}, {13, 1}, {29, 1}}

Max[FactorInteger[600851475143]]

6857

No comments:

Post a Comment