75
SOLUTION MEGATHREAD-🎄- 2022 Day 11 Solutions -🎄-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 17 minutes after) by daggerdragon to /r/adventofcode (134.8k)
WIKI NEWS
- The FAQ section of the wiki on [Code Formatting](https://www.reddit.com/r/adventofco...
since 3 years, 1 month ago
8 of 8
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


Python
I wish I understood how the super module trick works. Reading some of the results it makes it look like the fact all divisibility checks are against prime numbers so, something something, chinese remainder theorem?
Thanks times 11 ;)
Excellent explanation
This was amazingly explained, thanks!! I think I get it that
(a%(b*n)) % b === a%b. Need to get this really imprinted. Again thanks for the explanation!You don't actually need the LCM. Any common multiple works, and the product of all the numbers is always a common multiple. (It just won't be the least one unless the numbers are coprime.)