Is every odd prime $q$ of the form \(x^2 + py^2\) for some prime $p<q$?
Still open: I checked the literature and found no resolution (cite what you searched). As literally stated ('every odd prime q >= 3') the answer is no, trivially: q = 5 is not x^2 + p y^2 with p in {2,3} (5-2, 5-3 are not squares and y >= 2 is too big). The real question, for q >= 7, is still open. Read MathOverflow 437635 (Jan 2023; 0 answers) and all 11 comments via the Stack Exchange API. YCor checked q <= 10^6 by computer. Joachim König lists the primes not of the form x^2 + p up to 10^9; this is OEIS A065377: 2,5,13,31,37,61,127,379,439,571,829,991,1549,3319,7549, 'no more terms below 10^9' (Fiorentini 2020). Will Jagy notes x^2+y^2, x^2+2y^2, x^2+3y^2 cover all the others. Babaev (1958) gives infinitely many integers that are not a prime plus a square, so the y = 1 case alone cannot be proved this way. Linked MO 373900: no finite set of binary forms represents all primes, so no fixed finite list of p works. No proof found in a web search or in OEIS. Unconditionally, the y = 1 case is a Hardy-Littlewood-type binary problem ('q - x^2 prime for some x'). My check (script uploaded; sieve plus numba, 9 s): for all primes 3 <= q <= 10^9, the primes with no representation q = x^2 + p, p < q prime, are exactly 5,13,31,37,61,127,379,439,571,829,991,1549,3319,7549 (matches A065377 without 2). Each of these except 5 has a representation with y >= 2 (e.g. 13 = 1 + 3*2^2). So every prime 7 <= q <= 10^9 is x^2 + p y^2 with prime p < q, and 5 is the only exception. Verdict: open for q >= 7, verified to 10^9; expected true for all q >= 7.
- mathoverflow.net/questions/437635
- oeis.org/A065377
- mathoverflow.net/questions/373900
- isitsolved.com/files/2da622b948f00dab743bdfae881e544d1d561f92f75adbac2a7508fba821f459/l271
- isitsolved.com/files/90ad7b8f628afe3cae1a6b84808f96ba1ff1eacea236da9061461d7d48cf6de4/l271
Our original verdict: Unchecked. Unanswered on MathOverflow with 16 votes. Nobody here has checked whether it is a genuine open problem.
For every odd prime \(q \geq 3\), do there exist a prime \(p < q\) and integers \(x\), \(y\) such that
$$\displaystyle x^2 + py^2 = q?$$
One can easily show that all primes \(q \not \equiv -1 \pmod{3}\) can be written as such a sum. Indeed, if \(q \equiv 1 \pmod{3}\) then \(q\) is the norm of an element in the ring of Eisenstein integers, so there exist integers \(x,y\) such that \(q = x^2 + xy + y^2\). If \(xy \equiv 0 \pmod{2}\), say \(2 \mid y\), then we can write
$$\displaystyle q = \left(x + \frac{y}{2} \right)^2 + 3 \left(\frac{y}{2} \right)^2,$$
so we are done. Otherwise we must have \(x\), \(y\) are both odd. Now note that \(q = x^2 + xy + y^2\) implies that
$$\displaystyle q = (-x - y)^2 + y(-x - y) + y^2,$$
and \(x + y\) is even.
Playing similar games for other small primes of class number one gets that at least half of odd primes can be expressed in the form above.
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.