project-euler/problem4.py

10 lines
188 B
Python
Raw Normal View History

2017-06-21 16:42:24 +00:00
highest_value = 0
for i in range(100,1000):
for j in range(100,1000):
if str(i*j) == str(i*j)[::-1]:
if i*j > highest_value:
highest_value = i*j
print(highest_value)