import hashlib


puzzle_input = 'iwrupvqb'

import hashlib


puzzle_input = b'iwrupvqb'
number = 100000

while True:
    key = puzzle_input + str(number).encode()
    if hashlib.md5(key).hexdigest()[:5] == '00000':
        break
    number += 1

print(number)

# Runs way faster than I expected, lol


# My answer: 346386

Complete day 4 part 1
Complete day 4 part 1

  import hashlib
  
  
- puzzle_input = 'iwrupvqb'
+ puzzle_input = b'iwrupvqb'
+ number = 100000
  
+ while True:
+     key = puzzle_input + str(number).encode()
+     if hashlib.md5(key).hexdigest()[:5] == '00000':
+         break
+     number += 1
+ 
+ print(number)
+ 
+ # Runs way faster than I expected, lol
+ 
+ 
+ # My answer: 346386
+ 
Complete day 4 part 1
## Code Before:
import hashlib


puzzle_input = 'iwrupvqb'

## Instruction:
Complete day 4 part 1
## Code After:
import hashlib


puzzle_input = b'iwrupvqb'
number = 100000

while True:
    key = puzzle_input + str(number).encode()
    if hashlib.md5(key).hexdigest()[:5] == '00000':
        break
    number += 1

print(number)

# Runs way faster than I expected, lol


# My answer: 346386
