The Wizard’s Curse: Puzzle 5 Answer

Answer: 120346

The steps to get there are shown below.