Advent of code 2015 solutions https://adventofcode.com/2015/
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.

4.py 212B

1234567891011121314
  1. #!/usr/bin/python
  2. import hashlib
  3. input = 'ckczppom'
  4. count = -1
  5. hash = '111111'
  6. while hash[0:6] != '000000':
  7. count += 1
  8. hash = hashlib.md5("%s%s" % (input, count)).hexdigest()
  9. print(count)
  10. print(hash)