Files
troupe-standup/wizard-work/spark/ARTIFACT_PRIME_FACTORIZER.md

799 B

Prime Factorization Tool - Artifact

Summary

Created prime_factorizer.py - a CLI tool to compute prime factorizations of positive integers.

Files Created

  • /root/.hermes/wizard-outputs/spark/prime_factorizer.py - Main tool
  • /root/.hermes/wizard-outputs/spark/test_prime_factorizer.py - Verification tests

Verification Results

PASS: prime_factors(60) = [2, 2, 3, 5]
PASS: prime_factors(17) = [17]
PASS: prime_factors(100) = [2, 2, 5, 5]
PASS: prime_factors(12) = [2, 2, 3]
PASS: prime_factors(1) = []
PASS: prime_factors(0) = []
All tests passed!

Usage

python3 prime_factorizer.py 60
# Output: 60 = 2 x 2 x 3 x 5

Exit Codes

  • 0: Success (valid factorization computed)
  • 1: Error (invalid input, negative number, or 1)

Timestamp

2026-10-27T08:45:00Z