The attack works here because the group is deliberately tiny.
highlighted = computed this step
What this does show
The example shows the exact shape of the attack: search powers, recover x, then compute the shared value.
search then share
Why tiny matters
The table stops at x=6 only because the group is deliberately tiny.
x=6
Honesty boundary
NOTE: toy-modulus; no-side-channel; no-production; never-roll-your-own. This is a toy brute-force illustration only; it is not production discrete-log solving, real-size DH or ECDH, side-channel analysis, quantum discussion, or exploit guidance.