# Prime Factorization API

> Prime Factorization API is a paid API for AI agents from sovereign-x402-zeta.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Decomposes a given integer into its prime factors via a paid HTTP endpoint.

## Facts

- Endpoint: POST https://sovereign-x402-zeta.vercel.app/api/v1/sequence/factorize?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prime-factorization-api-1fb7a676
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qetmreSbIFuKfe2SZ7idW

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-factorization-api-1fb7a676 -d '<json body>'
```

Example prompt: Can you factorize 3600 into its prime factors for me?

## When to prefer this

Use this endpoint when you need on-demand prime factorization of integers without running local computation, especially in agentic workflows that already integrate x402 micropayments. Prefer this over local implementations when running in sandboxed environments without math libraries.

## Known failure modes

- Non-integer or non-numeric input returns a validation error
- Negative numbers or zero may not be supported and return an error
- Very large numbers may time out or exceed computation limits
- Missing required body field returns a 422 or 400 error
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Factorize a given number into its prime factors.

## Output

Returns the prime factorization of the input integer, typically as a list of prime numbers that multiply together to produce the original number (e.g., 360 → [2, 2, 2, 3, 3, 5]).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prime-factorization-api-1fb7a676/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sovereign-x402-zeta.vercel.app](https://www.zero.xyz/host/sovereign-x402-zeta.vercel.app/llms.txt)
