Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • $\begingroup$ Nice work. Does minimal number of moves necessarily minimize the largest prime? $\endgroup$ Commented Aug 4, 2022 at 3:04
  • 2
    $\begingroup$ Thanks! No, but this solution happens to be optimal for both objectives. $\endgroup$
    – RobPratt
    Commented Aug 4, 2022 at 3:12
  • 1
    $\begingroup$ Can you share the code you used? $\endgroup$
    – pajonk
    Commented Aug 4, 2022 at 6:28