Having looked here, what should I do differently to get the progress indicator working properly?
Monitor[Plot[{Pause[0.1];
LogIntegral[x] - Sum[2 N[Re[ExpIntegralEi[ZetaZero[n] Log[x]]]], {n, 1, 500}] - Log[2],
Sum[PrimePi[x^(1/n)]/n, {n, 1, Floor[Log[x]]}]},
{x, 2, 1000}], Row[{ProgressIndicator[x, {2, 1000}], x}, " "]]
Sum[2 N[Re[ExpIntegralEi[ZetaZero[n] Log[x]]]]
. If you remove that, things work fine. $\endgroup$ProgressIndicator
seems to go through each sum, rather than indicate the progress of the entire calculation. $\endgroup$Plot
adaptively evaluatesx
in a non sequential order. Without knowing a priori how many evaluations will be needed I see no sensible way to make the progress indicator work $\endgroup$MaxRecursion -> 0, PlotPoints -> 200
$\endgroup$Monitor[Sum[Pause[0.1]; x, {x, 1, 100}], Row[{ProgressIndicator[x, {1, 100}], x}, " "]]
$\endgroup$