I was not happy not really understanding the factor part of the solution to part2 of #adventofcode #day11 so I did some reading and some experimenting.
This PDF page 211 is where I had my a-ha moment. https://cses.fi/book/book.pdf
When it talks of 'm' the factor == m in the solution I used.
Here is my demo:
https://github.com/finalcut/advent_of_code_2022/blob/main/day11_5/src/main.rs
Another useful resource:
https://www.doc.ic.ac.uk/~mrh/330tutor/ch03.html
#adventofcode #Day11 #rust #math #imnotsmart