{"uid":"cap_CG_YGtwcdAfm1nxynMVVf","slug":"prime-factors-for-agents-121bf5c0","name":"Prime Factors for Agents","description":"Prime factorization. Use when agents need factorization for puzzles, crypto teaching, or ratio breakdowns (bounded n). Returns the factor list as structured JSON. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/prime-factors","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","description":"Integer input (see tool summary for allowed range)."}}},"responseSchema":{"type":"json","example":{"n":42,"schema":"delx/prime-factors/v1","factors":[2,3,7]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5sCck3IuQJ9m36grnjZAx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the prime factorization of an integer as a structured JSON list of factors","exampleAgentPrompt":"Can you give me the prime factorization of 360? I need the full list of prime factors as structured data.","exampleUseCases":[{"title":"Math puzzle prime breakdown","prompt":"I'm building a number puzzle game and I need the prime factorization of 5040 — give me the complete list of prime factors so I can check the player's answer."},{"title":"Cryptography teaching demo","prompt":"For my crypto explainer lesson, can you show the prime factorization of 84 so students can see how RSA relies on large primes being hard to factor?"},{"title":"Ratio simplification helper","prompt":"I need to simplify the ratio 120:84 — can you get the prime factors of both 120 and 84 so I can find the GCD and reduce the fraction?"}],"resultDescription":"A structured JSON object containing a list of prime factors for the given integer n, representing the complete prime factorization (e.g. for n=12, returns [2, 2, 3]).","failureModes":["n out of allowed bounded range — returns a structured validation error (no charge)","n is not an integer — schema validation error returned, no billing","payment not attached or x402 flow fails — request rejected before computation","n is 1 or 0 — edge case may return empty or error depending on implementation"],"whenToPreferThis":"Choose this endpoint when an AI agent needs deterministic, structured prime factorization without an API key or subscription — especially for math puzzles, cryptography education, GCD/LCM computation, or ratio simplification on bounded integers. Prefer over general-purpose math APIs when you want first-party JSON output with per-call micropayment pricing and no setup overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:32.377Z","isFirstParty":false}