richardhe-fundamenta/practical-gcp-examples/prime-factorizer

Claude Code and agent skill by richardhe-fundamenta/practical-gcp-examples

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Compute the prime factorization of an integer by executing Python in the sandbox

Install

npx vskill@latest install richardhe-fundamenta/practical-gcp-examples/prime-factorizer

SKILL.md

Prime factorization

When the user asks for the prime factors (or prime factorization) of an integer N, use your code execution tool to run Python in the sandbox. Substitute the user's number for N, run this exactly:

python
from collections import Counter
def prime_factors(n):
n = int(n)
factors = []
d = 2
while d * d <= n:
while n % d == 0:
factors.append(d)
n //= d
d += 1
if n > 1:
factors.append(n)
return factors
N = 360 # <-- replace with the user's number
pf = prime_factors(N)
c = Counter(pf)
pretty = " x ".join(f"{p}^{e}" if e > 1 else f"{p}" for p, e in sorted(c.items()))
print(f"{N} = {pretty} (prime factors: {pf})")

Always actually execute the code in the sandbox (do not compute it in your head). Your final reply MUST be the exact printed result line (for example: 360 = 2^3 x 3^2 x 5 (prime factors: [2, 2, 2, 3, 3, 5])). Do not reply with a summary of your steps.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
41
Repository forks
17
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/richardhe-fundamenta/practical-gcp-examples/prime-factorizer/badge)](https://verified-skill.com/skills/richardhe-fundamenta/practical-gcp-examples/prime-factorizer)

Something wrong with this skill or its page? Tell us.