Api Endpoint

Primality Check for Agents

Primality check. Call for teaching demos, ID heuristics, or lightweight number filters (bounded integers). Returns whether n is prime with a clear boolean field. $0.001 USDC per successful call via x402 on Base or Solana—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.

Open interactive test console

Offering

Provider
api.delx.ai
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Science And Education
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.delx.ai/api/v1/x402/is-prime
MIME type
application/json
First seen
2026-10-16T01:51:10.599Z
Last seen
Tags
X402, Utility, wave180, agentcash, micro-usdc

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 3
0.001 USDC
Atomic price: 1000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0x9f8bd9875b3E0b632a24A3A7C73f7787175e73A2"
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0x9f8bd9875b3E0b632a24A3A7C73f7787175e73A2"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "1000",
    "payTo": "28heAMpFkeUJsL7o7apiK4oJwZWq2fUHinRwbgYYsemG"
  }
]

Observed health

Status
Healthy
Latest latency
326 ms
Average latency
655 ms
HTTP status
204
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "additionalProperties": true,
      "properties": {
        "n": {
          "description": "Integer input (see tool summary for allowed range).",
          "type": "integer"
        }
      },
      "required": [
        "n"
      ],
      "type": "object"
    },
    "bodyType": {
      "const": "json",
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": true,
          "properties": {
            "n": {
              "description": "Integer input (see tool summary for allowed range).",
              "type": "integer"
            }
          },
          "required": [
            "n"
          ],
          "type": "object"
        },
        "bodyType": {
          "const": "json",
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "additionalProperties": true,
          "description": "Deterministic structured JSON result from first-party execution. Invalid inputs return a structured error object and are not billed.",
          "properties": {
            "is_prime": {
              "type": "boolean"
            },
            "n": {
              "type": "integer"
            },
            "schema": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "type": {
          "const": "json",
          "type": "string"
        }
      },
      "required": [
        "type",
        "example"
      ],
      "type": "object"
    }
  },
  "required": [
    "input",
    "output"
  ],
  "type": "object"
}