Skip to content
Development
Skill

/prime-numbers

Problem-solving strategies for prime numbers in graph number theory

From plugin
continuous-claude-v3
3.9k156 skills32 agents
Install
$ npx -y skills add parcadei/Continuous-Claude-v3 --skill prime-numbers --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/prime-numbers

Context preview

The summary Claude sees to decide when to auto-load this skill.

Problem-solving strategies for prime numbers in graph number theory

SKILL.md

prime-numbers.SKILL.md
name: prime-numbers
description: "Problem-solving strategies for prime numbers in graph number theory"
allowed-tools: [Bash, Read]

Prime Numbers

When to Use

Use this skill when working on prime-numbers problems in graph number theory.

Decision Tree

1. **Primality testing hierarchy**

  • Trial division: O(sqrt(n)), exact
  • Miller-Rabin: O(k log^3 n), probabilistic
  • AKS: O(log^6 n), deterministic polynomial

2. **Factorization**

  • Trial division for small factors
  • Pollard's rho: probabilistic, medium numbers
  • Quadratic sieve: large numbers
  • `sympy_compute.py factor "n"`

3. **Prime distribution**

  • Prime Number Theorem: pi(x) ~ x/ln(x)
  • Prime gaps: p_{n+1} - p_n
  • `sympy_compute.py limit "pi(x) * ln(x) / x"`

4. **Fermat's Little Theorem**

  • a^{p-1} = 1 (mod p) for a not divisible by p
  • Use for modular exponentiation
  • `z3_solve.py prove "fermat_little"`

5. **Wilson's Theorem**

  • (p-1)! = -1 (mod p) iff p is prime

Tool Commands

Sympy_Factor

uv run python -m runtime.harness scripts/sympy_compute.py factor "n"

Z3_Primality

uv run python -m runtime.harness scripts/z3_solve.py prove "no_divisor_between_1_and_sqrt_n"

Sympy_Prime_Count

uv run python -m runtime.harness scripts/sympy_compute.py simplify "pi(x) ~ x/ln(x)"

Z3_Fermat_Little

uv run python -m runtime.harness scripts/z3_solve.py prove "a**(p-1) == 1 mod p"

Key Techniques

*From indexed textbooks:*

Cognitive Tools Reference

See `.claude/skills/math-mode/SKILL.md` for full tool documentation.

Read more
Ships withcontinuous-claude-v3

A persistent, learning, multi-agent development environment built on Claude Code Continuous Claude transforms Claude Code into a continuously learning system that maintains context across sessions, orchestrates specialized agents, and eliminates wasting

Get the whole plugin

Other skills on continuous-claude-v3.