Showing posts with label primes. Show all posts
Showing posts with label primes. Show all posts

Saturday, January 22, 2011

Project Euler - Problem 3

Time for another one! I'm getting through these faster than I would've thought!

This one took me a bit more time simply because I made some stupid mistakes, mainly forgetting operation precedence and leaving out a set of brackets. I probably should start commenting my code and learn to use the debugging tools in Eclipse.

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

What is the largest prime factor of the number 600851475143 ?