Left to Solve
Problems / MathOverflow (not formalized)

Is every odd prime $q$ of the form $x^2 + py^2$ for some prime $p<q$?

Open, not yet stated in LeanMathOverflow (not formalized)Number Theorydifficulty55/100

Statement

For every odd prime , do there exist a prime and integers , such that

One can easily show that all primes can be written as such a sum. Indeed, if then is the norm of an element in the ring of Eisenstein integers, so there exist integers such that . If , say , then we can write

so we are done. Otherwise we must have , are both odd. Now note that implies that

and 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.

Posed by Stanley Yao Xiao · nt.number-theory, analytic-number-theory, algebraic-number-theory

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-437635.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-437635.lean

import Mathlib

/-!
# Is every odd prime $q$ of the form $x^2 + py^2$ for some prime $p<q$?

Source: https://mathoverflow.net/questions/437635
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_437635

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_437635