# Sindri Prime Factorization API

> Sindri Prime Factorization API is a paid API for AI agents from x402.outpimp.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Computes the complete prime factorization of an integer (2 to 10^12) via trial division, returning all prime factors with repetition.

## Facts

- Endpoint: POST https://x402.outpimp.com/primeFactorize
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sindri-prime-factorization-api-1438a64b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QCpeTbrAF2jjNWkpjBkMl

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 sindri-prime-factorization-api-1438a64b -d '<json body>'
```

Example prompt: Can you give me the full prime factorization of 720, including repeated factors?

## When to prefer this

Choose this endpoint when you need the complete prime factorization of a single integer up to 10^12, with all prime factors listed including duplicates. It uses trial division and is well-suited for numbers in this range. Prefer it over manual computation or general-purpose math APIs when you need a lightweight, pay-per-call factorization with a clean JSON response.

## Known failure modes

- Input n is less than 2 or not an integer — invalid input error
- Input n exceeds 10^12 — out-of-range error
- Non-numeric input provided — type validation error
- Payment not processed — 402 Payment Required response

## How this service works

Prime factorization of an integer via trial division, returning the full list of prime factors (with repetition).

## Output

A list of prime factors of the input integer n, with repetition (e.g. for 12, returns [2, 2, 3]), computed via trial division. The product of all returned factors equals n.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "number",
   "description": "Integer to factorize (2 to 10^12)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sindri-prime-factorization-api-1438a64b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.outpimp.com](https://www.zero.xyz/host/x402.outpimp.com/llms.txt)
