static void Main() { long number, largestPalindrome = 0; Problem4 palindrome = new Problem4(); for (long i = 999; i > 99; i--) { for (long j = 999; j > 99; j--) { number = i * j; if (palindrome.PalindromicNumber(number) && number > largestPalindrome) { largestPalindrome = number; } } } Console.WriteLine(largestPalindrome); Console.ReadKey(); }