# Prime Factors for Agents

> Prime Factors for Agents is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns the prime factorization of an integer as a structured JSON list of factors

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/prime-factors
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prime-factors-for-agents-121bf5c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CG_YGtwcdAfm1nxynMVVf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability prime-factors-for-agents-121bf5c0 -d '<json body>'
```

Example prompt: Can you give me the prime factorization of 360? I need the full list of prime factors as structured data.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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]).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "description": "Integer input (see tool summary for allowed range)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 42,
  "schema": "delx/prime-factors/v1",
  "factors": [
   2,
   3,
   7
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prime-factors-for-agents-121bf5c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
