:tada:*Day 13 solution thread*:smiling_imp:
# advent-of-code
b
🎉*Day 13 solution thread*😈
j
probably should've used some smart modifications of lcm, but for giver input it still calculates in 6ms, so...
but it requires BigInteger due to one of the last intermediate values being too large for a Long
replacing it with the dumb sieve was faster
n
My solution exploits the fact that all the bus ID's are prime. I'm not crazy about that, although it is pretty simple/efficient as a result
I think mine takes time proportional to the sum of the bus ID's, which is pretty good
t