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 ?