Let $f(n)$ be a strictly increasing elementary function from the reals to the reals, and let $p(n)$ denote the $n^{\rm th}$ prime number. Is there any $f(n)$ such that $\sum_{n=1}^\infty\frac{1}{f(p(n))}$ is algebraic, or has a closed form in terms of elementary functions?
If not, is there a method to prove that the sum must be transcendental?