# Delx Commerce — Is-Prime Checker

> Delx Commerce — Is-Prime Checker is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Checks whether a given integer is a prime number, returning a boolean result via a pay-per-call API using USDC micropayments.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/is-prime?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-is-prime-checker-3431a5a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nhPLbpz0DzBT46-qfOgWz

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 delx-commerce-is-prime-checker-3431a5a5 -d '<json body>'
```

Example prompt: Can you check if 97 is a prime number using a pay-per-result primality API that charges $0.001 USDC per call?

## When to prefer this

Choose this endpoint when you need a fast, trustless, pay-per-use primality check with cryptographically verifiable delivery via USDC micropayments on Base or Solana, and you want no signup or subscription overhead. Ideal for agents making occasional or sporadic primality checks where a hosted math library is unavailable or impractical.

## Known failure modes

- Non-integer or missing 'n' field returns a validation error
- Numbers outside the allowed range for the API may be rejected
- Payment failure or insufficient USDC balance will prevent the call from completing
- Network issues with Base or Solana payment rails may cause transaction failures

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the input integer (n), the schema identifier ('delx/is-prime/v1'), and a boolean field 'is_prime' indicating whether the number is prime. Example: {"n": 42, "schema": "delx/is-prime/v1", "is_prime": false}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "description": "Integer input (see tool summary for allowed range)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 42,
  "schema": "delx/is-prime/v1",
  "is_prime": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-is-prime-checker-3431a5a5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
