analyze-prime-numbers

Solid

Analyze prime numbers using primality tests, factorization algorithms, prime distribution analysis, and sieve methods. Covers trial division, Miller-Rabin, Sieve of Eratosthenes, and the Prime Number Theorem. Use when determining whether an integer is prime or composite, finding prime factorizations, counting or listing primes up to a bound, or investigating prime properties within a number-theoretic proof or computation.

AI & Automation 26 stars 4 forks Updated today MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
48
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Analyze Prime Numbers Analyze prime numbers by selecting and applying the appropriate algorithm for the task at hand: primality testing, integer factorization, or prime distribution analysis. Verify results computationally and relate findings to the Prime Number Theorem. ## When to Use - Determining whether a given integer is prime or composite - Finding the complete prime factorization of an integer - Counting or listing primes up to a given bound - Verifying the Prime Number Theorem approximation for a specific range - Investigating properties of primes in a number-theoretic proof or computation ## Inputs - **Required**: The integer(s) to analyze, or a bound for distribution analysis - **Required**: Task type -- one of: primality test, factorization, or distribution analysis - **Optional**: Preferred algorithm (trial division, Miller-Rabin, Sieve of Eratosthenes, Pollard's rho) - **Optional**: Whether to produce a formal proof of primality or a computational verdict - **Optional**: Output format (factor tree, prime list, count, table) ## Procedure ### Step 1: Determine the Task Type Classify the request into one of three categories and select the appropriate algorithmic path. 1. **Primality test**: Given a single integer n, determine whether n is prime. 2. **Factorization**: Given a composite integer n, find its complete prime factorization. 3. **Distribution analysis**: Given a bound N, analyze the primes up to N (count, list, gaps, density). Record the task ty...

Details

Author
pjt222
Repository
pjt222/agent-almanac
Created
1 years ago
Last Updated
today
Language
R
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category