Rebased projecteuler folder, now includes all contest programming stuff

This commit is contained in:
2021-10-26 10:54:24 +02:00
parent 1aa6120838
commit e0c627a384
77 changed files with 203 additions and 67 deletions

18
projecteuler/048/main.py Normal file
View File

@@ -0,0 +1,18 @@
'''
The series, 11 + 22 + 33 + ... + 1010 = 10405071317.
Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000.
'''
def main():
print("Hello this is Patrick")
s = 0
for i in range(1,1001):
s += pow(i, i,10**10)
print(s % 10**10)
if __name__ == "__main__":
main()