# Sindri Primality Test (Miller-Rabin)

> Sindri Primality Test (Miller-Rabin) is a paid API for AI agents from x402.outpimp.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Tests whether a given non-negative integer is prime using a deterministically correct Miller-Rabin algorithm, covering all integers up to 2^53-1 (JavaScript safe integer range).

## Facts

- Endpoint: POST https://x402.outpimp.com/isPrime
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sindri-primality-test-miller-rabin-6980a7e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XRB7lN-S8uWGMlAwATs7U

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 sindri-primality-test-miller-rabin-6980a7e8 -d '<json body>'
```

Example prompt: Is 982451653 a prime number? Run it through that deterministic Miller-Rabin primality test.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, guaranteed-correct primality answer for any integer within JavaScript's safe integer range (up to ~9 quadrillion). Unlike probabilistic primality tests, this uses a fixed witness set proven to be deterministic below 3.3×10^24, making it suitable for cryptographic screening, competitive programming, or anywhere false positives are unacceptable. Prefer this over rolling your own Miller-Rabin or using probabilistic tests when correctness matters.

## Known failure modes

- Input n is outside the valid range [0, 2^53-1] — returns an error or undefined behavior
- Input n is not an integer (e.g. a float) — may be rejected or rounded
- Missing required field 'n' — returns a validation error
- Network or payment failure (x402 protocol) — call does not complete

## How this service works

Deterministic primality test using the Miller-Rabin algorithm with a witness set proven deterministic for all integers below 3.3x10^24, safely covering the full JavaScript safe-integer range.

## Output

Returns a JSON response indicating whether the submitted integer is prime (true/false), computed deterministically using the Miller-Rabin algorithm with a proven witness set — no probabilistic false positives for any value up to 2^53-1.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "number",
   "description": "Non-negative integer to test (0 to 2^53 - 1)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sindri-primality-test-miller-rabin-6980a7e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.outpimp.com](https://www.zero.xyz/host/x402.outpimp.com/llms.txt)
