How can I solve an equation of the following form?
$$x = 10+\mathrm{\mathbf{PrimePi}[x]}$$
where $x$ is an integer. I am using Solve
but am getting the following error:
$RecursionLimit::reclim2 Recursion depth of 1024 exceeded during evaluation of PrimePi[x]
It is the first time I attempt to do this type of task in Mathematica so I could be missing something very elemental.
=
(assignment) instead of==
(equality). $\endgroup$ – Roman Jan 28 '20 at 6:33x
. $\endgroup$ – abcd Jan 29 '20 at 0:45=
to==
was probably that you did not clear/quit the kernel, and so the previous definition was still lingering in the background (Mathematica doesn't forget anything unless you tell it to). With?x
you can find out what definitions are associated withx
. $\endgroup$ – Roman Jan 29 '20 at 7:00