# SignalDesk AI – Is Prime Check

> SignalDesk AI – Is Prime Check 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).

Checks whether a given non-negative integer (up to 1,000,000,000) is a prime number, returning a boolean result.

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/math/is-prime?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-is-prime-check-172398ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_guaEzlQhfGmj2m1nszV9C

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-is-prime-check-172398ca -d '<json body>'
```

Example prompt: Can you check whether 982451653 is a prime number?

## When to prefer this

Use this endpoint when an agent needs a quick, cheap, authoritative primality check on a single integer up to one billion, particularly in contexts where calling a local math library is not an option or when operating within an x402 micropayment workflow. It is not suitable for batch primality testing, numbers above 1,000,000,000, or when factorization or nearest-prime information is also needed.

## Known failure modes

- Input integer exceeds maximum of 1,000,000,000 — rejected with validation error
- Negative integer submitted — rejected (minimum is 0)
- Non-integer value submitted — schema validation failure
- Payment not attached or insufficient — HTTP 402 response requiring x402 payment of $0.001 USDC
- Service quota or rate limit reached — bounded execution may reject the request

## 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 object with a single boolean field `prime` — true if the submitted integer is prime, false otherwise. No additional detail (factors, nearest prime, etc.) is returned.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prime": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-is-prime-check-172398ca/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)
