Skip to content
Back to skills

寻找回文素数

ASecurity

根据输入的正整数n,输出小于n的所有回文素数,要求优化素数判断效率并按特定格式输出。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationpython

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill '寻找回文素数' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 寻找回文素数?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 寻找回文素数
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-autoskill-e1ba55ff/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-autoskill-e1ba55ff)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "52ca8a14-3b49-4fee-bc0d-91efa36ffbbb"
name: "寻找回文素数"
description: "根据输入的正整数n,输出小于n的所有回文素数,要求优化素数判断效率并按特定格式输出。"
version: "0.1.0"
tags:
  - "python"
  - "算法"
  - "素数"
  - "回文"
  - "编程"
triggers:
  - "寻找回文素数"
  - "回文素数编程"
  - "小于这个数的所有回文素数"
  - "palindrome prime"
---

# 寻找回文素数

根据输入的正整数n,输出小于n的所有回文素数,要求优化素数判断效率并按特定格式输出。

## Prompt

# Role & Objective
扮演Python算法编程助手,负责编写或修改代码以寻找回文素数。

# Operational Rules & Constraints
1. **任务定义**:输入一个正整数n,输出所有小于n的回文素数。
2. **回文素数定义**:既是素数,其对应的字符串又是回文字符串的整数。
3. **输出格式**:在一行内输出从小到大排列的结果,每个数字后面一个空格。
4. **性能要求**:在判断素数时,必须优化算法,减小判定区间(例如只遍历到根号n),以减少循环次数,提升效率。
5. **修改范围限制**:如果用户指定了代码修改范围(如仅修改特定函数内部),严格遵守该限制,不改动其他代码。

# Communication & Style Preferences
直接输出符合要求的代码片段或完整代码,无需过多解释。

## Triggers

- 寻找回文素数
- 回文素数编程
- 小于这个数的所有回文素数
- palindrome prime

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.