质数的和与积

Luogu
IDLGB2134
Time1000ms
Memory128MB
DifficultyP1
函数与递归
两个质数的和是 $S$,它们的积最大是多少? ## Input 一个不大于 $10000$ 的正整数 $S$,为两个质数的和。 ## Output 一个整数,为两个质数的最大乘积。数据保证有解。 [samples]
Samples
Input #1
50
Output #1
589
API Response (JSON)
{
  "problem": {
    "name": "质数的和与积",
    "description": {
      "content": "两个质数的和是 $S$,它们的积最大是多少?",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB2134"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "两个质数的和是 $S$,它们的积最大是多少?\n\n## Input\n\n一个不大于 $10000$ 的正整数 $S$,为两个质数的和。\n\n## Output\n\n一个整数,为两个质数的最大乘积。数据保证有解。\n\n[samples]...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments