I came across the following integral, while working with products of $\zeta$ primes function: $$ \int_{1}^{x}t^{-s-1} \sum_{i=1}^{\pi(t^{1/2})}\left[\pi\left(\frac{t}{p_i}\right)-i+1\right] dt, $$ where the inner sum represents $\pi_2(t)$, the number of semi-primes below $t$, and $\pi(t^{1/2})$ gives the number of squares below $t$.
Since $t$ also appears inside the integral as limit of the sum, I don't think I could switch summation and integration. Further $t$ doesn't make sense outside the integral at all.
Here it was recommended to do a two-variable change. How does that work, when I have only one variable?
Does it (somehow) work to move the $t^{-s-1}$ inside the summation? I'm worried, since $t$ also appears in the upper limit $\pi(t^{1/2})$.
Can anybody help me evaluating this integral?