prime-sieve-generator
SolidGenerate optimized prime sieves and factorization routines
AI & Automation 1,160 stars
71 forks Updated today MIT
Install
Quality Score: 94/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Prime Sieve Generator Skill
## Purpose
Generate optimized prime sieves and factorization routines for various competitive programming scenarios.
## Capabilities
- Sieve of Eratosthenes (segmented, linear)
- Smallest prime factor sieve
- Miller-Rabin primality testing
- Pollard's rho factorization
- Precompute prime-related values
- Generate primes in range
## Target Processes
- prime-algorithms
- number-theory-algorithms
- combinatorics-counting
## Sieve Variants
### Basic Sieves
- Sieve of Eratosthenes O(n log log n)
- Linear sieve O(n)
- Segmented sieve (for large ranges)
### Factorization Sieves
- Smallest prime factor (SPF) sieve
- Mobius function sieve
- Euler's totient sieve
### Primality Testing
- Miller-Rabin (deterministic for small n)
- Fermat test
- Trial division
### Factorization
- Trial division O(sqrt(n))
- Pollard's rho O(n^1/4)
- Using SPF sieve O(log n)
## Input Schema
```json
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["sieve", "primalityTest", "factorization", "spfSieve"]
},
"limit": { "type": "integer" },
"optimizations": { "type": "array" },
"language": {
"type": "string",
"enum": ["cpp", "python", "java"]
}
},
"required": ["type"]
}
```
## Output Schema
```json
{
"type": "object",
"properties": {
"success": { "type": "boolean" },
"code": { "type": "string" },
"complexity": { "type": "object" },
"memoryUsage": { "type": "string" }
}...
Details
- Author
- a5c-ai
- Repository
- a5c-ai/babysitter
- Created
- 4 months ago
- Last Updated
- today
- Language
- JavaScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
prime-numbers
Problem-solving strategies for prime numbers in graph number theory
3,795 Updated 4 months ago
parcadei AI & Automation Solid
combinatorics-calculator
Calculate combinatorial values with modular arithmetic
1,160 Updated today
a5c-ai AI & Automation Solid
number-theory-toolkit
Provide number theory algorithm implementations and guidance
1,160 Updated today
a5c-ai AI & Automation Solid
prime-numbers
Problem-solving strategies for prime numbers in graph number theory
496 Updated 1 months ago
vibeeval AI & Automation Solid
micro-optimizer
Apply language-specific micro-optimizations
1,160 Updated today
a5c-ai