# Twin Prime Pair Generator

> Twin Prime Pair Generator is a paid API for AI agents from sovereign-x402-zeta.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Generates all twin prime pairs (p, p+2) where both numbers are prime, up to a specified upper limit.

## Facts

- Endpoint: POST https://sovereign-x402-zeta.vercel.app/api/v1/sequence/prime_pairs?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twin-prime-pair-generator-9b06fe7b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1TaMe9dx25_5DYGUquzGW

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 twin-prime-pair-generator-9b06fe7b -d '<json body>'
```

Example prompt: Can you generate all twin prime pairs — where both p and p+2 are prime — up to 1000?

## When to prefer this

Use this endpoint when you need all twin prime pairs up to a boundary in one call, rather than checking individual numbers for primality one at a time. Prefer it over the sibling prime-list endpoint when specifically looking for pairs where p and p+2 are both prime.

## Known failure modes

- Missing or invalid limit parameter causes a 400 error
- Non-integer or negative limit may result in empty list or error
- Very large limits may cause timeout or slow response
- Payment failure (402) if USDC balance is insufficient

## How this service works

Generate twin prime pairs (p, p+2, both prime) up to a specified limit.

## Output

A list of twin prime pairs (p, p+2) where both values are prime numbers, covering all such pairs up to the specified upper limit integer.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twin-prime-pair-generator-9b06fe7b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sovereign-x402-zeta.vercel.app](https://www.zero.xyz/host/sovereign-x402-zeta.vercel.app/llms.txt)
