Erdős writes that a 'weaker conjecture which is perhaps not quite inaccessible' is that, for every $\epsilon>0$, if $x$ is sufficiently large there exists $y<x$ such that \[\pi(x)< \pi(y)+\epsilon \pi(x-y).\] (Compare this to [855].) He notes that if \[\pi(x)< \pi(y)+O\left(\frac{x-y}{\log x}\right)\] for all $y<x-(\log x)^C$ for some constant $C>0$ then $f(n)\ll \log\log\log n$.
The study of $f(p)$ is even harder, and Erdős could not prove that \[\sum_{p<x}f(p)^2\sim \pi(x).\]