IMO1987 P6
open: first valid proof sets the record
Compfiles · Imo · Apache-2.0
Copyright (c) 2025 The Compfiles Contributors. All rights reserved. Authors: Jia-Jun Ma
Statement
import Mathlib.Data.Nat.Prime.Basic
import Mathlib
import Mathlib.Tactic.Ring
theorem _root_.LeanGolf.compfiles.imo1987_p6
(p : ℕ)
(h₁ : ∀ k : ℕ, k ≤ Nat.floor (Real.sqrt ((p:ℝ) / 3)) → Nat.Prime (k^2 + k + p)) :
∀ i ≤ p - 2, Nat.Prime (i^2 + i + p)Trusted statement context
namespace Imo1987P6
open Nat