summaryrefslogtreecommitdiff
path: root/Problem40.py
diff options
context:
space:
mode:
Diffstat (limited to 'Problem40.py')
-rw-r--r--Problem40.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Problem40.py b/Problem40.py
new file mode 100644
index 0000000..966118d
--- /dev/null
+++ b/Problem40.py
@@ -0,0 +1,7 @@
+#Completed 9/10/2021 1:50PM
+count,x = 1,1
+numstring = "0"
+while len(numstring) <= 1000000:
+ numstring += str(x)
+ x+=1
+print(int(numstring[1])*int(numstring[10])*int(numstring[100])*int(numstring[1000])*int(numstring[10000])*int(numstring[100000])*int(numstring[1000000]))