From 266dd95a4128c5d91a5412c9ffbf2e2967907691 Mon Sep 17 00:00:00 2001 From: t3xhno Date: Tue, 6 Feb 2024 15:07:54 +0100 Subject: [PATCH] Problem4 --- src/problem4.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/problem4.py diff --git a/src/problem4.py b/src/problem4.py new file mode 100644 index 0000000..51463bc --- /dev/null +++ b/src/problem4.py @@ -0,0 +1,7 @@ +result = 0 + +for i in range(100, 999): + for j in range(100, 999): + if str(i * j) == str(i * j)[::-1] and i * j > result: result = i * j + +print(result)