Add 1 -> 5

This commit is contained in:
PedroEdiaz
2025-10-29 17:19:47 -06:00
commit 62dade14e1
5 changed files with 139 additions and 0 deletions

13
2015/4.py Normal file
View File

@@ -0,0 +1,13 @@
import hashlib
zeros= 5
input = "abcdef"
for i in range(10**(zeros+1)):
string = input + str(i).zfill(zeros)
hash = hashlib.md5(string.encode('utf-8')).hexdigest()
if hash.startswith(zeros*"0"):
print(i, hash)
break;