{
  "id": "6897",
  "ident": "NS.06897",
  "slug": "oeis-81091",
  "title": "Primes of the form 2^n + 2^i + 1",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**Conjecture (A81091)**: There are infinite primes of the form $2^n + 2^i + 1$,\nwith $0 < i < n$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA81091.conjectureA81091",
  "statement_lean": "theorem conjectureA81091 :\n    Set.Infinite {p : ℕ | A p}",
  "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/-!\n# Primes of the form 2^n + 2^i + 1\n\nThere are infinite primes of the form $2^n + 2^i + 1$, with $0 < i < n$.\nSee Wagstaff (2001) where this conjecture is posed.\n\n*References:*\n- [A81091](https://oeis.org/A81091)\n- Samuel S. Wagstaff, Jr., [Prime Numbers with a fixed number of one bits or zero bits in their binary representation](http://projecteuclid.org/euclid.em/999188636), Exp. Math. vol. 10, issue 2 (2001) 267.\n-/\n\n@[expose] public section\n\nnamespace OeisA81091\n\n/-- Primes with $m$ one bits in their binary representation. -/\ndef isPrimeBitsSet (m p : ℕ) : Prop :=\n  p.Prime ∧ p.bits.count true = m\n\n/-- Primes in A81091 have exactly $3$ set bits in binary representation ($2^n + 2^i + 1$). -/\ndef A (p : ℕ) : Prop :=\n  isPrimeBitsSet 3 p\n\n@[category test, AMS 11]\ntheorem a_7 : A 7 := by unfold A isPrimeBitsSet; decide +kernel\n\n@[category test, AMS 11]\ntheorem a_11 : A 11 := by unfold A isPrimeBitsSet; decide +kernel\n\n@[category test, AMS 11]\ntheorem a_13 : A 13 := by unfold A isPrimeBitsSet; decide +kernel\n\n@[category test, AMS 11]\ntheorem a_19 : A 19 := by unfold A isPrimeBitsSet; decide +kernel\n\n@[category test, AMS 11]\ntheorem a_37 : A 37 := by unfold A isPrimeBitsSet; decide +kernel\n\n/--\n**Conjecture (A81091)**: There are infinite primes of the form $2^n + 2^i + 1$,\nwith $0 < i < n$.\n-/\n@[category research open, question, AMS 11]\ntheorem conjectureA81091 :\n    Set.Infinite {p : ℕ | A p} := by\n  sorry\n\n-- TODO(Paul-Lez): add result that for m ≥ 3, there is no prime number with precisely 2m bits, exactly two of which are zero bits.\n\nend OeisA81091\n",
  "statement_hash": "63b977e992115c29bbdbd5f511e396f5e85805d005a2ac64e8dc41a1fc00b756",
  "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."
}