Problem 1922 · Medium

Count Good Numbers

Count digit strings of length n where even positions hold even digits and odd positions hold prime digits. The visual labels each slot as even or odd and multiplies the choice counts as a running product modulo a fixed value.

Open the interactive visualisation