[math-fun] Endgame Bottlenecks ... algorithmic challenge