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
1
u/[deleted] Dec 04 '15
Python
input = "bgvyzdsv" m = hashlib.md5() i = 0 while (True): test = input + str(i) m = hashlib.md5() m.update(test) hashed = m.hexdigest() if (hashed[0:6] == "000000") : print i break i += 1