diff --git a/euler0XX/euler040.py b/euler0XX/euler040.py new file mode 100644 index 0000000..ae8ac9a --- /dev/null +++ b/euler0XX/euler040.py @@ -0,0 +1,6 @@ +d = ''.join(str(i) for i in range(1, 10 ** 6)) + +total = 1 +for i in range(7): + total = total * int(d[10 ** i - 1]) +print(total) \ No newline at end of file