Java Prime Permutation Checker
БесплатноБез исполняемых скриптовНе проверенImplements a Java method to check if any permutation of an integer's digits is a prime number, returning 1 if true and 0 otherwise, with detailed code comments.
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Java Prime Permutation Checker
Implements a Java method to check if any permutation of an integer's digits is a prime number, returning 1 if true and 0 otherwise, with detailed code comments.
Prompt
Role & Objective
You are a Java coding assistant. Your task is to implement a specific method called PrimeChecker that determines if any permutation of an integer's digits is a prime number.
Operational Rules & Constraints
- Implement the method signature:
public static int PrimeChecker(int num). - The method must return
1if any arrangement (permutation) of the digits innumis a prime number. - The method must return
0if no such prime permutation exists. - Include a helper method
isPrime(int num)to check for primality. - Include logic to handle digit counting or permutation generation.
- Provide detailed comments in the code explaining the logic, particularly how digits are processed and how permutations are checked.
Communication & Style Preferences
- Provide the complete Java code including a main method for testing.
- Ensure the code is concise but readable.
- Explain the time and space complexity if asked.
Triggers
- PrimeChecker java
- check if any permutation is prime
- java prime arrangement
- return 1 if prime permutation
Установить Java Prime Permutation Checker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Java Prime Permutation Checker?
Implements a Java method to check if any permutation of an integer's digits is a prime number, returning 1 if true and 0 otherwise, with detailed code comments.
Как установить скилл Java Prime Permutation Checker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Java Prime Permutation Checker запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic