I noticed that the sum of certain functions composed prime-number of times sometimes converges and I'm curious what we can say about the properties of functions that do converge and those that do not. To further explain...
Let $f_n(\alpha)$ be defined as the function $g$ composed $n$ times evaluated at $\alpha$. $$ f_n(\alpha) = (g \circ \overbrace{ \ldots }^n \circ g)(\alpha), \,\alpha \in \mathbb{R}$$
Now consider the function
$$ s(\alpha) = \sum_{n=1}^{\infty} (-1)^{n-1} f_{P_n}(\alpha) $$
where $P_n$ is the n-th prime number and $ g(\alpha) = \sin(\alpha) $.
The partial sums appear to be approaching $0.3695$ ($\approx 30 e^{\Gamma(5/24)}$). Are the top and bottom bounded or do they both continue to approach $y=0.3695$?
Below is a plot of the partial sums:

Another interesting plot is when $g(\alpha) = \ln|\alpha + 1| $. Here the series seems to certainly converge to $0.3704$

Is there a closed form solution when $g(\alpha) = \ln|\alpha +1|$? The value of convergence appears to depend on $\alpha$ so I propose there might be a closed form solution in terms of $\alpha$. I've observed that as $\alpha$ increases so does the value of convergence.
Are there any other statements we can make about the convergence of $s(\alpha)$ given the characteristics of $g$? Given $g$, can we determine what values of $\alpha$ cause $s(\alpha)$ to converge? Or if it converges at all?
Update 1: A table of the values of $s(\alpha)$ when $g(\alpha)=\ln|\alpha +1|$:
s(0) = 0.000000
s(1) = 0.252109
s(2) = 0.370438
s(3) = 0.445306
s(5) = 0.540452
s(10) = 0.664692
s(50) = 0.913516
Update 2: More examples of functions that appear to cause $s$ to diverge are $g(\alpha)=\frac{\tan(\alpha)}{\alpha}$, $g(\alpha)=\tan(\alpha + \sin(\alpha))$, $g(\alpha)=\sin(\mathrm{e}^\alpha + \alpha)$, and $g(\alpha) = \lfloor \sqrt{\lfloor \alpha \rfloor + 1} + \alpha \rfloor$. What about these functions causes $s(\alpha)$ to diverge?
Update 3: Below is a plot of $g(\alpha) = \lfloor \sqrt{\lfloor \alpha \rfloor + 1} + \alpha \rfloor$
