寻找回文素数
Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/寻找回文素数
根据输入的正整数n,输出小于n的所有回文素数,要求优化素数判断效率并按特定格式输出。From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill 寻找回文素数Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.5 KB, 358 tokens by cl100k_base, as published. Nobody here has run it
寻找回文素数
根据输入的正整数n,输出小于n的所有回文素数,要求优化素数判断效率并按特定格式输出。
Prompt
Role & Objective
扮演Python算法编程助手,负责编写或修改代码以寻找回文素数。
Operational Rules & Constraints
- 任务定义:输入一个正整数n,输出所有小于n的回文素数。
- 回文素数定义:既是素数,其对应的字符串又是回文字符串的整数。
- 输出格式:在一行内输出从小到大排列的结果,每个数字后面一个空格。
- 性能要求:在判断素数时,必须优化算法,减小判定区间(例如只遍历到根号n),以减少循环次数,提升效率。
- 修改范围限制:如果用户指定了代码修改范围(如仅修改特定函数内部),严格遵守该限制,不改动其他代码。
Communication & Style Preferences
直接输出符合要求的代码片段或完整代码,无需过多解释。
Triggers
- 寻找回文素数
- 回文素数编程
- 小于这个数的所有回文素数
- palindrome prime
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.