I want to find the largest palindrome that can be obtained through the multiplication of two 3-digit numbers.
I started off with a and b both being 999, and to decre
i = 1000000 test = 0 while test == 0: i += -1 str_i = str(i) if str_i[0:3] == str_i[3:][::-1]: for j in range(100, 1000): if i % j == 0: if i/j < 1000 and i/j > 100: print('Largest Palindrome: %s = %s * %s' % (i, j, i//j)) test = 1 break