Hard logic-puzzles interview practice: Game of Divisors.
Explore this problem with a Quantercise subscription.