Problem 3377 · Medium

Digit Operations to Make Two Integers Equal

Dijkstra over numbers where each step changes one digit by one, never lands on a prime, and the cost is the sum of every value visited.

Open the interactive visualisation