# x402-toolbox Prime Number Check

> x402-toolbox Prime Number Check is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Checks whether a given integer is a prime number, returning a deterministic boolean result via x402 micropayment.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/math/prime-number-check?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-prime-number-check-7f9a944e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7lQHhtA1k3K590fqvUCRS

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 x402-toolbox-prime-number-check-7f9a944e
```

Example prompt: Is 104729 a prime number? Just run a quick prime check on it.

## When to prefer this

Choose this endpoint when you need a quick, no-signup, pay-per-call primality check with deterministic results and no rate-limit concerns tied to API keys. Ideal for AI agents that operate autonomously with a USDC wallet and need on-demand math utilities without managing credentials.

## Known failure modes

- Non-numeric or missing input returns an error or undefined result
- Payment failure (insufficient USDC balance or x402 protocol error) causes a 402 response and no computation
- Very large numbers may exceed computation limits or timeout
- Malformed schema parameter may result in a 400 bad request

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with an 'ok' boolean indicating success, a 'paid' boolean confirming the x402 micropayment was processed, and the primality result for the submitted number (whether it is prime or not).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-prime-number-check-7f9a944e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
