Advent of Code 2024 Day 22

Author

Nathan Moore

— Day 22: Monkey Market —

For each buyer, simulate the creation of 2000 new secret numbers. What is the sum of the 2000th secret number generated by each buyer?

with open('data-2024-22.txt', 'r') as f:
    inp = f.read().splitlines()

Obviously a function.

# here's another python cell for good luck

Paste part two here