Provide number theory algorithm implementations and guidance
Scanned 9/2/2026
Install to Claude Code
npx -y skills add a5c-ai/babysitter --skill number-theory-toolkit --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Number Theory Toolkit?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/a5c-ai-number-theory-toolkit-babysitter)More formats (shields.io, HTML) on the badges page.
---
name: number-theory-toolkit
description: Provide number theory algorithm implementations and guidance
allowed-tools:
- Read
- Write
- Grep
- Glob
- Edit
graph:
domains: [domain:computer-science]
specializations: [specialization:algorithms-optimization]
skillAreas: [skill-area:mathematical-reasoning, skill-area:dynamic-programming]
roles: [role:backend-engineer, role:computational-scientist]
---
# Number Theory Toolkit Skill
## Purpose
Provide implementations and guidance for number theory algorithms commonly used in competitive programming.
## Capabilities
- Modular arithmetic operations
- Extended Euclidean algorithm
- Chinese Remainder Theorem
- Modular inverse and exponentiation
- FFT/NTT for polynomial multiplication
- Linear sieve implementations
## Target Processes
- number-theory-algorithms
- prime-algorithms
- combinatorics-counting
## Algorithm Catalog
### Modular Arithmetic
- Modular exponentiation (binary exp)
- Modular inverse (Fermat/Extended GCD)
- Modular square root (Tonelli-Shanks)
### GCD and Extensions
- Euclidean algorithm
- Extended Euclidean algorithm
- Linear Diophantine equations
### Chinese Remainder Theorem
- CRT for coprime moduli
- General CRT
### FFT/NTT
- Fast Fourier Transform
- Number Theoretic Transform
- Polynomial multiplication
## Input Schema
```json
{
"type": "object",
"properties": {
"algorithm": { "type": "string" },
"parameters": { "type": "object" },
"language": {
"type": "string",
"enum": ["cpp", "python", "java"]
},
"modulo": { "type": "integer" }
},
"required": ["algorithm"]
}
```
## Output Schema
```json
{
"type": "object",
"properties": {
"success": { "type": "boolean" },
"code": { "type": "string" },
"explanation": { "type": "string" },
"complexity": { "type": "string" }
},
"required": ["success"]
}
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!