{
  "type": "code_options",
  "author": "csdn.net",
  "source": "solution.md",
  "exercise_id": "6c50862d32324cd692f96c3d58c51115",
  "keywords": "算法高阶,数论算法,素数的测试,算法问题选编",
  "title": "找出素数对",
  "desc": [
    {
      "content": "\n任意输入一个大于10的偶数编程找出所有和等于该偶数的素数对",
      "language": "markdown"
    }
  ],
  "answer": [
    {
      "content": "",
      "language": "python"
    }
  ],
  "prepared": [
    [
      {
        "content": "",
        "language": "python"
      }
    ],
    [
      {
        "content": "",
        "language": "python"
      }
    ],
    [
      {
        "content": "",
        "language": "python"
      }
    ]
  ],
  "template": {
    "content": "h = 0\ndef a(h):\n\tx = 0\n\tfor j in range(2, h):\n\t\tif h % j == 0:\n\t\t\tx = 1\n\t\t\tbreak\n\tif x == 0:\n\t\treturn 1\nn = int(input(\"输入任意大于10的偶数：\"))\nfor i in range(n,n+1):\n\th = 0\n\tif i % 2 == 0:\n\t\tfor k in range(2, i):\n\t\t\tif a(k) == 1 and a(i - k) == 1:\n\t\t\t\th = 1\n\t\t\t\tif h == 0:\n\t\t\t\t\tprint(\"%d can't\" % i)\n\t\t\t\t\tbreak\n\t\t\t\telse:\n\t\t\t\t\tprint(\"%d=%d+%d\" % (i, k, i - k))\n\t\t\t\t\tbreak",
    "language": "python"
  },
  "node_id": "dailycode-2eebebfff6fa4188a9711c043407e25f",
  "license": "csdn.net",
  "created_at": 1637894161,
  "topic_link": "https://bbs.csdn.net/topics/600470404"
}