{
  "id": "7891",
  "ident": "NS.07891",
  "slug": "wikipedia-emirp",
  "title": "Emirps",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "[Wikipedia's article on emirps](https://en.wikipedia.org/wiki/Emirp) states: \"It is not known\nwhether there are infinitely many emirps.\"",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Emirp.infinitude_question",
  "statement_lean": "theorem infinitude_question :\n    {p : ℕ | IsEmirp p}.Infinite",
  "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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Emirps\n\nAn emirp is a prime whose decimal reversal is a different prime. It is unknown whether there are\ninfinitely many emirps.\n\n*References:*\n* [Wikipedia, Emirp](https://en.wikipedia.org/wiki/Emirp)\n* [OEIS A006567](https://oeis.org/A006567)\n-/\n\n@[expose] public section\n\nnamespace Emirp\n\n/-- Reverse the base-ten digits of a natural number. -/\ndef reverse10 (n : ℕ) : ℕ :=\n  Nat.ofDigits 10 (Nat.digits 10 n).reverse\n\n/-- A natural number is an emirp if it and its distinct decimal reversal are both prime. -/\ndef IsEmirp (p : ℕ) : Prop :=\n  p.Prime ∧ (reverse10 p).Prime ∧ reverse10 p ≠ p\n\n@[category test, AMS 11]\ntheorem reverse10_13 : reverse10 13 = 31 := by\n  norm_num [reverse10, Nat.ofDigits]\n\n@[category test, AMS 11]\ntheorem reverse10_17 : reverse10 17 = 71 := by\n  norm_num [reverse10, Nat.ofDigits]\n\n@[category test, AMS 11]\ntheorem reverse10_120 : reverse10 120 = 21 := by\n  norm_num [reverse10, Nat.ofDigits]\n\n@[category test, AMS 11]\ntheorem a_13 : IsEmirp 13 := by\n  norm_num [IsEmirp, reverse10, Nat.ofDigits]\n\n@[category test, AMS 11]\ntheorem a_17 : IsEmirp 17 := by\n  norm_num [IsEmirp, reverse10, Nat.ofDigits]\n\n@[category test, AMS 11]\ntheorem a_31 : IsEmirp 31 := by\n  norm_num [IsEmirp, reverse10, Nat.ofDigits]\n\n@[category test, AMS 11]\ntheorem a_37 : IsEmirp 37 := by\n  norm_num [IsEmirp, reverse10, Nat.ofDigits]\n\n@[category test, AMS 11]\ntheorem not_a_11 : ¬ IsEmirp 11 := by\n  norm_num [IsEmirp, reverse10, Nat.ofDigits]\n\n/-- [Wikipedia's article on emirps](https://en.wikipedia.org/wiki/Emirp) states: \"It is not known\nwhether there are infinitely many emirps.\" -/\n@[category research open, question, AMS 11]\ntheorem infinitude_question :\n    {p : ℕ | IsEmirp p}.Infinite := by\n  sorry\n\nend Emirp\n",
  "statement_hash": "b90e4d688f1d0a7ddf7d6e204baa08be5e5ddf03175e6ce00af6ff44d928aac0",
  "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."
}