A007491: Smallest prime > n^2.
Statement
Suggested by Legendre's conjecture (still open) that there is always a prime between n^2 and (n+1)^2. · Legendre's conjecture is equivalent to a(n) < (n+1)^2. · From Jaroslav Krizek, Apr 02 2016: Conjectures: 1) There is always a prime p between n^2 and n^2+n (verified up to 13*10^6). 2) a(n) is the smallest prime p such that n^2 < p < n^2+n; a(n) < n^2+n. 3) For all numbers k >= 1 there is the smallest number m > 2*(k+1) such that for all numbers n >= m there is always a prime p between n^2 and n^2 + n - 2k. Sequence of numbers m for k >= 1: 6, 8, 12, 13, 14, 24, 24, 24, 30, 30, 30, 31, 33, 35, 43, ...; lim_{k->oo} m/2k = 1. Example: k=2; for all numbers n >= 8 there is always a prime p between n^2 and n^2 + n - 4.
Posed by Jean-Christophe Hervé · OEIS nice
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/oeis-a007491.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. 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/oeis-a007491.lean
import Mathlib /-! # A007491: Smallest prime > n^2. Source: https://oeis.org/A007491 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_oeis_a007491 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a007491