On p. 76 of the 1996 edition of Serre's A Course in Arithmetic, one reads the following (inline) remark:
One can prove that, if $A$ has natural density $k$, the analytic density of $A$ exists and is equal to $k$.
Here, $A$ is a subset of $\bf P$ (the set of all positive rational primes), and the natural density of $A$ is actually the natural density of $A$ relative to $\bf P$, viz. the limit $$\lim_{n \to \infty} \frac{|A \cap [1,n]|}{|\mathbf P \cap [1,n]|}$$ (if it exists), while the analytic density of $A$ is actually the analytic density relative to $\bf P$, viz. the limit $$\lim_{s \to 1^+} \frac{\sum_{p \in A} p^{-s}}{\sum_{p \in \mathbf P} p^{-s}}$$ (again, if it exists). Here are then my questions:
Q1. Was it Serre the first who made this observation explicit? Q2. Do you know of a paper or book where a proof is provided? Serre doesn't even give a hint about it.
Notes (added later).
On Q1: In the light of Lucia's comment below, let me make it clear that I myself find it very unreasonable that the result hadn't been known before Serre's remark in the 1970 French edition of his book (p. 126). I'd just like to find out if it was Serre the first who made it explicit.
On Q2: I have my own proof, but would appreciate a reference. The reason is that something sensibly stronger is true, and I'm hoping to understand from the inspection of the proof he may have had in mind if this is intentional (e.g., it is evident from the proof he may have had in mind that something sensibly stronger is true, but he just didn't care), or not.
Edit (Feb 09, 2016). For future reference, I think it can be useful to make order and summarize, here in the OP, what has emerged from the answers and comments of those who have so far contributed to this discussion:
1) As expected, it wasn't Serre the one who first made explicit the relation between the analytic and natural densities relative to the primes. The result is already stated on p. 118 of:
E. Landau, Handbuch der Lehre von der Verteilung der Primzahlen, Erster Band, Teubner: Leipzig, 1909,
where a detailed proof is also presented. This answers both Q1 and Q2.
2) Franz Lemmermeyer, in a comment to the OP, had suggested since the outset that the result should have appeared almost surely in some of Landau's books. This was confirmed by so-called friend Don in his answer (here), where it's also reported that the result was mentioned on p. 225 of the 1st edition of:
H. Hasse, Vorlesungen über Zahlentheorie, Die Grundlehren der mathematischen Wissenschaften 59, Springer-Verlag: Berlin, 1950.
Interestingly enough, Hasse made a mistake here, by stating that not only the existence of the natural density (relative to the primes) implies that the analytic density (always relative to the primes) also exists, and the two are then equal: He went on asserting that also the converse is true! As still noted by so-called friend Don, the mistake was fixed in the 2nd (1964) edition of the book (p. 236), and it was mentioned in a comment to his answer that we know by now that Hasse was really wrong, for an example attributed by Serre to a private communication from E. Bombieri (p. 126 in the 1970 French edition of A Course in Arithmetic, or p. 76 in the 1996 English edition) proves the existence of a set of primes that has analytic (relative) density, but not natural (relative) density.
3) Comparison results in the same spirit of those considered in this question, but involving densities on $\mathbf N^+$, are not so rare in the literature. Most notably, it is known (and easy to prove by Abel's summation formula) that the upper analytic density (on $\mathbf N^+$) is not greater than the upper logarithmic density, which is in turn not greater than the upper asymptotic density, see, e.g., Theorem 2 in Section III.1.3 of:
G. Tenenbaum, Introduction to Analytic and Probabilistic Number Theory, Cambridge Stud. Adv. Math. 46, Cambridge Univ. Press: Cambridge, 1995.
It follows at once that the existence of the natural density (on $\mathbf N^+$) implies the existence of the logarithmic density, and the existence of the logarithmic density implies the existence of the analytic density.
4) On the other hand, it is known that upper and lower asymptotic and natural densities are pretty much independent from each other, in a sense that was first made precise by L. Mišík in:
L. Mišík, Sets of positive integers with prescribed values of densities, Math. Slovaca 52 (2002), No. 3, pp. 289-296. see here for further reading on the subject.
You may want to read the comments to Question 103111: Prescribed values for the uniform density for a more accurate account of Mišík's results and generalizations theoreof.
5) Furthermore, it is known that the existence of the analytic density (on $\mathbf N^+$) implies that also the logarithmic density exists, and the two are then equal. This is a non-trivial result, which goes back at least to H. Davenport and P. Erdős, who make an implicit reference to it in the proof of Theorem 1 from:
H. Davenport and P. Erdős, On sequences of positive integers, Acta Arith. 2 (1936), No. 1, 147-151.
The proof is based on the Hardy-Littlewood tauberian theorem. All of this was pointed out by so-called friend Don in a comment to GH from MO's answer (here). An alternative proof, that rather uses Karamata's tauberian theorem, is given by Tenenbaum in his book (Theorem 3 in Section III.1.3). The same Tenenbaum mentioned in a private communication that the special case of Karamata's theorem needed here goes back to:
O. Szász, Münchner Sitzungsberichte (1929), 325-340.
6) Last but not least, Christian Elsholtz added some further elements to the story (here).