Project Euler Problem 3

What is the largest prime factor of the number 600851475143 ?

PHP Script
To find the prime factors of the number 600851475143, we will use my PHP Prime Factor class. Use the following snippet once the Prime Factor class has been loaded (meaning the following script should appear after the Prime Factor function).

$prime = primefactor('600851475143');
echo $prime[count($prime) - 1];

Leave a Reply

Your email address will not be published.