Problem 2979 · Medium

Most Expensive Item That Can Not Be Bought

With two distinct prime coin values, find the largest price that no mix of the coins can pay. A marking table shows every payable price.

Open the interactive visualisation