From 1161f9a034de06a63538e3a9a0b7717098c744d9 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Fri, 7 Apr 2023 08:13:49 -0500 Subject: Initial Commit --- Problem40.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Problem40.py (limited to 'Problem40.py') 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])) -- cgit v1.2.3