A repro for all my Advent of ode tasks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

13 lines
377 B

import hashlib
component = 1
fount_it = False
while fount_it == False:
m = hashlib.md5()
m.update(str('iwrupvqb').encode('utf-8') + str(component).encode('utf-8'))
result = m.hexdigest()
print("Component: " + str(component) + " Result: " + result)
if(result.startswith('000000')):
fount_it = True
else:
component += 1
print("Santa needs the number " + str(component))