{
  "id": "4797",
  "ident": "NS.04797",
  "slug": "oeis-113609",
  "title": "Number of prime powers $q<=n$ such that also $q+2$ is a prime power",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "(25,27) is the smallest pair of prime powers (q,q+2) such that both q and q+2 are not primes,\nconjecture: there are more (but not < 10^6).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA113609.conjecture",
  "statement_lean": "theorem conjecture :\n  ∃ q ≥ 1000000,\n    IsOeisPrimePower q ∧ IsOeisPrimePower (q + 2) ∧\n    ¬ q.Prime ∧ ¬ (q + 2).Prime",
  "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# Number of prime powers $q<=n$ such that also $q+2$ is a prime power\n\n*References:*\n- [A113609](https://oeis.org/A113609)\n-/\n\n@[expose] public section\n\nnamespace OeisA113609\n\n/--\nA number $n$ is an \"OEIS prime power\" (for the context of A113609's definition)\nif $n=1$ or $n$ is a standard prime power.\n-/\ndef IsOeisPrimePower (n : ℕ) : Prop := n = 1 ∨ IsPrimePow n\n\ninstance DecidableIsOeisPrimePower (n : ℕ) : Decidable (IsOeisPrimePower n) := by\n  simp only [IsOeisPrimePower]\n  exact instDecidableOr\n\n/--\nThe primary defining sequence `a`.\n$a(n)$ is the number of prime powers $q<=n$ such that also $q+2$ is a prime power.\n$$a(n) = \\operatorname{card} \\{q \\in \\mathbb{N} \\mid 1 \\le q \\le n \\land P(q) \\land P(q+2) \\}$$\n-/\ndef a (n : ℕ) : ℕ :=\n  Finset.card $ (Finset.range (n + 1)).filter fun q =>\n    IsOeisPrimePower q ∧ IsOeisPrimePower (q + 2) ∧ q ≥ 1\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by native_decide\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 2 := by native_decide\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 3 := by native_decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 3 := by native_decide\n\n@[category test, AMS 11]\ntheorem a_5 : a 5 = 4 := by native_decide\n\n/--\n(25,27) is the smallest pair of prime powers (q,q+2) such that both q and q+2 are not primes,\nconjecture: there are more (but not < 10^6).\n-/\n@[category research open, question, AMS 11]\ntheorem conjecture :\n  ∃ q ≥ 1000000,\n    IsOeisPrimePower q ∧ IsOeisPrimePower (q + 2) ∧\n    ¬ q.Prime ∧ ¬ (q + 2).Prime := by\n  sorry\n\nend OeisA113609\n",
  "statement_hash": "c20c702b7df9944dbccbd056354bd512d38a9ba08470ad532c668ca3ef21f99b",
  "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."
}