Problem 2906 · Medium

Construct Product Matrix

Each cell of the product matrix holds the product of every other cell, taken modulo 12345, using running prefix and suffix products.

Open the interactive visualisation