Advent of code

 4 décembre 2015 

  The Ideal Stocking Stuffer :
  1. code.py
import hashlib

START = 'bgvyzdsv'

trouve = False
n = 0
while not trouve:
    n += 1
    hash = hashlib.md5((START + str(n)).encode())
    if hash.hexdigest().startswith('000000'):
        trouve = True

print(n)