first commit
This commit is contained in:
commit
31bda4481f
37 changed files with 4645 additions and 0 deletions
11
2015/four/solution-2.py
Normal file
11
2015/four/solution-2.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import hashlib
|
||||
key = "iwrupvqb"
|
||||
found = False
|
||||
i = 0
|
||||
while not found:
|
||||
result = hashlib.md5(bytes(key+str(i), 'utf-8')).hexdigest()
|
||||
i += 1
|
||||
if result[:6] == "000000":
|
||||
found = True
|
||||
print(i-1)
|
||||
|
11
2015/four/solution.py
Normal file
11
2015/four/solution.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import hashlib
|
||||
key = "iwrupvqb"
|
||||
found = False
|
||||
i = 0
|
||||
while not found:
|
||||
result = hashlib.md5(bytes(key+str(i), 'utf-8')).hexdigest()
|
||||
i += 1
|
||||
if result[:5] == "00000":
|
||||
found = True
|
||||
print(i-1)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue