{
  "id": "1949",
  "ident": "NS.01949",
  "slug": "erdos-385",
  "title": "Erdős Problem 385",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $F(n) := \\max\\{m + p(m) \\mid m < n \\textrm{ composite}\\}$ where $p(m)$ is the least\nprime divisor of $m$. Is it true that $F(n)>n$ for all sufficiently large $n$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/385",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos385.erdos_385.parts.i",
  "statement_lean": "theorem erdos_385.parts.i : ∀ᶠ n in atTop, n < F n",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 385\n\n*Reference:* [erdosproblems.com/385](https://www.erdosproblems.com/385)\n-/\n\n@[expose] public section\n\nnamespace Erdos385\n\nopen Filter\n\n/-- Let $F(n) := \\max\\{m + p(m) \\mid m < n \\textrm{ composite}\\}$ where $p(m)$ is the least\nprime divisor of $m$. -/\nnoncomputable def F (n : ℕ) : ℕ := sSup {m + m.minFac | (m < n) (_ : m.Composite)}\n\n/-- Note that trivially $F(n) \\leq n + \\sqrt{n}$. -/\n@[category test, AMS 11]\ntheorem trivial_ub (n : ℕ) : F n ≤ n + √n := by\n  have hkey : F n ≤ n + n.sqrt := by\n    apply csSup_le'\n    rintro x ⟨m, hm, hcomp, rfl⟩\n    have h1 : 0 < m := by have := hcomp.1; omega\n    have hsq : m.minFac ^ 2 ≤ m := Nat.minFac_sq_le_self h1 hcomp.2\n    have hmf : m.minFac ≤ m.sqrt := Nat.le_sqrt.mpr (by rw [← sq]; exact hsq)\n    have hmn : m.sqrt ≤ n.sqrt := Nat.sqrt_le_sqrt hm.le\n    omega\n  calc (F n : ℝ) ≤ ((n + n.sqrt : ℕ) : ℝ) := by exact_mod_cast hkey\n    _ = n + (n.sqrt : ℝ) := by push_cast; ring\n    _ ≤ n + √n := by\n        gcongr\n        rw [show ((n.sqrt : ℕ) : ℝ) = √((n.sqrt ^ 2 : ℕ) : ℝ) from by\n          push_cast; rw [Real.sqrt_sq (Nat.cast_nonneg _)]]\n        exact Real.sqrt_le_sqrt (by exact_mod_cast Nat.sqrt_le' n)\n\n/-- Let $F(n) := \\max\\{m + p(m) \\mid m < n \\textrm{ composite}\\}$ where $p(m)$ is the least\nprime divisor of $m$. Is it true that $F(n)>n$ for all sufficiently large $n$? -/\n@[category research open, question, AMS 11]\ntheorem erdos_385.parts.i : ∀ᶠ n in atTop, n < F n := by\n  sorry\n\n/-- Let $F(n) := \\max\\{m + p(m) \\mid m < n \\textrm{ composite}\\}$ where $p(m)$ is the least\nprime divisor of $m$. Does $F(n) - n \\to \\infty$ as $n\\to\\infty$? -/\n@[category research open, question, AMS 11]\ntheorem erdos_385.parts.ii : atTop.Tendsto (fun n ↦ F n - n) atTop := by\n  sorry\n\n/-- A question of Erdős, Eggleton, and Selfridge, who write that in fact it is possible that\nthis quantity is always at least $n+(1-o(1))\\sqrt{n}$ -/\n@[category research open, question, AMS 11]\ntheorem erdos_385.variants.lb : ∃ (e : ℕ → ℝ) (he : e =o[atTop] (1 : ℕ → ℝ)),\n    ∀ n, n + (1 - e n) * √n ≤ F n :=\n  sorry\n\nend Erdos385\n",
  "statement_hash": "5664dfc1ed359d4b16e8bd5c2783d728d2af37d49b3ab3796c4d86d979cdf11d",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}