Pywayne Maths

Mathematical utility functions for factorization, digit counting, and large integer multiplication using Karatsuba algorithm. Use when solving number theory problems, computing factors, counting digit occurrences, or performing optimized large integer multiplication.

9 starsOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add wangyendt/wayne-skills --skill pywayne-maths
Manual install
git clone --depth 1 https://github.com/wangyendt/wayne-skills.git /tmp/wayne-skills
mkdir -p ~/.claude/skills
cp -r /tmp/wayne-skills/pywayne/maths ~/.claude/skills/pywayne-maths

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Pywayne Maths

Mathematical utility functions for number theory, digit analysis, and optimized integer operations.

## Quick Start

```python
from pywayne.maths import get_all_factors, digitCount, karatsuba_multiplication

# Get all factors of a number
factors = get_all_factors(28)
print(factors)  # [1, 2, 4, 7, 14, 28]

# Count digit occurrences
count = digitCount(100, 1)
print(count)  # 21 (digit 1 appears 21 times in 1-100)

# Large integer multiplication
product = karatsuba_multiplication(1234, 5678)
print(product)  # 7006652
```

## Functions

### get_all_factors

Return all factors of a positive integer.

```python
get_all_factors(n: int) -> list
```

**Parameters:**
- `n` - Positive integer to factorize

**Returns:**
- List of all factors of `n`

**Use Cases:**
- Number theory problems
- Finding divisors
- Simplifying fractions
- Greatest common divisor (GCD) calculation

**Example:**
```python
from pywayne.maths import get_all_factors

factors = get_all_factors(36)
print(factors)  # [1, 2, 3, 4, 6, 9, 12, 18, 36]

# Check if number is prime
n = 17
factors = get_all_factors(n)
if len(factors) == 2:  # Only 1 and itself
    print(f"{n} is prime")
else:
    print(f"{n} is not prime")
```

### digitCount

Count occurrences of digit `k` from 1 to `n`.

```python
digitCount(n, k) -> int
```

**Parameters:**
- `n` - Positive integer, upper bound of counting range
- `k` - Digit to count (0-9)

**Returns:**
- Count of digit `k` in range [1, n]

**Special Case:**
Read the full skill on GitHub

Details

Skill name
pywayne-maths
Path
pywayne/maths/SKILL.md
License
MIT
Repo updated
23 October 2026

FAQ

What does the Pywayne Maths skill do?

Mathematical utility functions for factorization, digit counting, and large integer multiplication using Karatsuba algorithm. Use when solving number theory problems, computing factors, counting digit occurrences, or performing optimized large integer multiplication.

How do I install the Pywayne Maths skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add wangyendt/wayne-skills --skill pywayne-maths. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Pywayne Maths popular?

It lives in wangyendt/wayne-skills, which has 9 GitHub stars and 0 forks.

Related skills

Alapi

9

wangyendt/wayne-skills

Comprehensive ALAPI skill covering the full bundled ALAPI OpenAPI catalog. Use when the user mentions ALAPI, alapi, ALAPI_TOKEN, openapi.json, or an ALAPI path like /api/..., or asks to find which ALAPI API matches a business need, choose between similar ALAPI endpoints, explain request fields, prepare or execute a request, or troubleshoot an ALAPI response. Covers inspirational content, articles, news and hotlists, AI chat/translation/NLP, OCR and document recognition, weather and calendar data, IP/phone/ID/domain/ICP/enterprise lookup and verification, finance/exchange/gold/oil/crypto market

Writing & Content

Android App Publisher

9

wangyendt/wayne-skills

Build or publish standalone Android APKs to an authenticated OSS distribution service, update the latest release, list published apps, and generate stable download links and QR codes. Use for Android app sharing and release management, not generic OSS operations or app-store uploads.

Mobile Development

Awesome Docs

9

wangyendt/wayne-skills

Use this skill whenever the user asks to record, organize, update, or maintain project documentation, including architecture overviews and decisions, technical books and derivations, API/protocol/configuration references, implementation plans, roadmaps, todos, risks, experiments, know-how, or common commands. Choose paths and naming by document purpose, preserve existing canonical locations, and check links when reorganizing. Defaults to the target project’s docs directory unless the user specifies another location. Covers reader-first technical explanations and interactive HTML documents as w

Writing & Content

Sentiment Analysis

9

tarunccet/pm-skills

Analyze user feedback data to identify segments with sentiment scores, JTBD, and product satisfaction insights. Use when analyzing user feedback at scale, running sentiment analysis on reviews or surveys, or identifying satisfaction patterns.

Other

Pywayne Helper

9

wangyendt/wayne-skills

Project configuration management helper for YAML config files. Use when projects need cross-process/cross-file parameter sharing via a centralized config file. Supports automatic project root detection, nested config key management, and waiting mechanism for values set by other processes.

Other

00 Andruia Consultant

9

huytran1120/vietnam-agentic-skills

Usar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español.

Other

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.