# Agent Micro Prime Checker

> Agent Micro Prime Checker is a paid API for AI agents from agent-micro.annushka1190.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Checks whether a given integer is a prime number, returning a boolean result via a cheap per-call micro-payment endpoint.

## Facts

- Endpoint: GET https://agent-micro.annushka1190.workers.dev/v1/math/prime
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-micro-prime-checker-6757626b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YaZTknpF6kJhURbtv1et6

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 agent-micro-prime-checker-6757626b
```

Example prompt: Can you check whether 104729 is a prime number using a math micro-tool?

## When to prefer this

Choose this endpoint when you need a quick, cheap, on-demand primality check for a single integer without spinning up your own math library or compute environment. At $0.001 per call paid in USDC via x402, it is ideal for AI agents that occasionally need mathematical validation without maintaining local dependencies.

## Known failure modes

- Missing or invalid 'input' query parameter returns an error
- Non-integer or non-numeric input may return a 400 error
- Payment failure or missing x402 USDC header results in 402 Payment Required
- Very large integers may cause timeout or overflow errors
- Network issues with the Cloudflare Worker may return 5xx errors

## How this service works

Advanced micro-tools for AI agents: cryptographic randomness, text analysis, math helpers, date arithmetic, web metadata, and IP intelligence. All under $0.01 per request, paid in USDC via x402.

## Output

Returns a JSON object with an 'ok' boolean field indicating whether the request succeeded, and likely a result field indicating whether the provided integer is prime.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-micro-prime-checker-6757626b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-micro.annushka1190.workers.dev](https://www.zero.xyz/host/agent-micro.annushka1190.workers.dev/llms.txt)
