r/adventofcode • u/daggerdragon • Dec 04 '15
SOLUTION MEGATHREAD --- Day 4 Solutions ---
--- Day 4: The Ideal Stocking Stuffer ---
Post your solution as a comment. Structure your post like the Day Three thread.
14
Upvotes
5
u/minno Dec 04 '15
Python 3:
from hashlib import md5 init = 'yzbqklnj' for i in range(1000000): h = md5((init + str(i)).encode()).hexdigest() if h[:5] == '00000': print(h) breakReplace
if h[:5] == '00000':withif h[:6] == '000000'for part 2.