When using stuff like:
CellPrint[Cell["Z/" <> ToString[Prime[n]] <> "Z", "Item"]]
How can I use dynamic functionality in there? I was planning to create a dynamic variable n and make it dynamic in there but it's not working. I tried using the following slider:
{Slider[Dynamic[n], {0, 100, 1}], Dynamic[n]}
And the following codes:
CellPrint[Cell["Z/" <> ToString[Prime[Dynamic[n]]] <> "Z", "Item"]]
And
CellPrint[Cell["Z/" <> ToString[Evaluate[Prime[Refresh[n, UpdateInterval -> 1]]]] <> "Z", "Item"]]
But it doesn't work.
n
that updates dynamically. $\endgroup$