# SignalDesk AI Prime Factorization

> SignalDesk AI Prime Factorization is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Computes the prime factorization of an integer, returning each prime factor with its exponent

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/math/prime-factors?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-prime-factorization-f64468d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sxGc8XEPOjFb0r1rB2YB0

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 signaldesk-ai-prime-factorization-f64468d2 -d '<json body>'
```

Example prompt: What are the prime factors of 360? Break it down into primes with their exponents.

## When to prefer this

Use this endpoint when you need a deterministic, paid, on-demand prime factorization of any integer up to one billion without running local computation. Prefer it when your agent workflow needs structured JSON output (prime + exponent pairs) rather than a plain text answer, or when you want a reliable external computation via x402 micropayment rather than a locally written algorithm.

## Known failure modes

- Input n below 2 or above 1,000,000,000 returns a validation error
- Non-integer or float input rejected by schema
- Missing 'n' field in request body causes bad request error
- Payment of 0.001 USDC not included triggers 402 Payment Required
- Network timeout on Cloudflare Worker under load

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

A JSON array of objects, each containing a 'prime' (the prime base) and an 'exponent' (how many times it divides the input), collectively representing the full prime factorization of the input integer n.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "maximum": 1000000000,
   "minimum": 2,
   "description": "Integer."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "factors": [
   {
    "prime": 2,
    "exponent": 3
   },
   {
    "prime": 3,
    "exponent": 2
   },
   {
    "prime": 5,
    "exponent": 1
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-prime-factorization-f64468d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
