素数回文数的个数

Luogu
IDLGB2136
Time1000ms
Memory128MB
DifficultyP1
函数与递归
求 $11$ 到 $n$ 之间(包括 $n$),既是素数又是回文数的整数有多少个。 ## Input 一个大于 $11$ 小于 $10000$ 的整数 $n$。 ## Output $11$ 到 $n$ 之间的素数回文数个数。 [samples] ## Note 回文数指左右对称的数,如:$11$,$12121$。
Samples
Input #1
23
Output #1
1
API Response (JSON)
{
  "problem": {
    "name": "素数回文数的个数",
    "description": {
      "content": "求 $11$ 到 $n$ 之间(包括 $n$),既是素数又是回文数的整数有多少个。",
      "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": "LGB2136"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "求 $11$ 到 $n$ 之间(包括 $n$),既是素数又是回文数的整数有多少个。\n\n## Input\n\n一个大于 $11$ 小于 $10000$ 的整数 $n$。\n\n## Output\n\n$11$ 到 $n$ 之间的素数回文数个数。\n\n[samples]\n\n## Note\n\n回文数指左右对称的数,如:$11$,$12121$。...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments