There are two parts here. One is the fact that any primitive binary quadratic form (unless it is indefinite and factors, such as $x^2 - y^2$) represents infinitely many primes. The original articles are shown here: primes represented by an indefinite binary quadratic form while there is an "elementary" proof much later [(1954), by W.E. Briggs][1](1954), by W.E. Briggs, a student of Burton Wadsworth Jones at U. Colorado, Boulder.
Next, when do we get such a clear bijection, primes represented by a (principal) form being precisely those for which a monic quartic factors nicely? That answer is in Liu-Williams 1994, which I put at [INHOMOGENEOUS][2]INHOMOGENEOUS. There is also a very nice table by Henri Cohen there, some of the same information.
Similar for monic cubics in Hudson-Williams 1991. For instance, a prime other then 2,3,23, is represented by $x^2 + xy + 6 y^2$ if and only if $(p|23)=1$ and $z^3 - z + 1 $ factors nicely $\pmod p.$ This led to my first MO question, what integers are integrally represented by $$ 2 x^2 + x y + 3 y^2 + z^3 - z, $$ one direction proved by Kevin Buzzard and the other direction unsure. Very similar, what integers are integrally represented by $$ 4 x^2 + 2 x y + 7 y^2 + z^3 , $$ one direction quite easy (I sent it as a problem in the MAA Monthly), one direction open. Let's see, problem 11539, December 2010, (page 929), single answer by Robin Chapman, December 2012, pages 884-885; Robin's one reference was the Cox book.
Finally, i can tell you that the complex multiplication method of finding these polynomials tends to produce huge coefficients, and these few articles give quite rare instances where small coefficients of everything are known.
Finally, there is a very nice article by Stevenhagen and Lenstra, 1996 in the Mathematical Intelligencer, Chebotarev and his Density Theorem in which the earlier result of Frobenius (1880) is discussed; the set of primes $p$ for which a monic, irreducible polynomial $ f \in \mathbb Z[x],$ of degree $n,$ factors into $n$ linear factors is infinite and has a (predictable) natural density. The same can be said about other factoring patterns; infinitely many primes for which $f$ is irreducible, infinitely many primes where the factorization is a linear times an irreducible of degree $(n-1)$ and so on. Evidently the only standard book to include this Frobenius result is Janusz... Frobenius density theorem [1]: http://cms.math.ca/10.4153/CJM-1954-034-0 [2]: http://zakuski.utsa.edu/~jagy/inhom.html