diff options
author | Joshua Drake <joshua.drake@ditchwitch.com> | 2023-04-07 08:13:49 -0500 |
---|---|---|
committer | Joshua Drake <joshua.drake@ditchwitch.com> | 2023-04-07 08:13:49 -0500 |
commit | 1161f9a034de06a63538e3a9a0b7717098c744d9 (patch) | |
tree | 55bb842b2daa4f096eb7916a8d3630426fc1c376 /Problem40.py |
Diffstat (limited to 'Problem40.py')
-rw-r--r-- | Problem40.py | 7 |
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])) |