Solution Problem 4 Project Euler

2008
11.25

I have solved problem 4 of Project Euler. I created a google code hosted project here where you can check out the solutions to the problems I have solved. In particular the solution to problem 4 is here

Problem004.java

The solution is a brute force approach. I initialize two numbers to 999 and then iterate down on each of them separately until we reach zero on both. At this point we should have the two three digit numbers that make up the largest palindrome.

Hope the solution is understandable. If not, don’t hesitate to put a comment.

Your Reply