# ForgeMesh Integer Trivia Lookup

> ForgeMesh Integer Trivia Lookup is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns mathematical trivia for any integer: primality, prime factorization, Fibonacci membership, binary, hex, Roman numeral, and digit sum.

## Facts

- Endpoint: POST https://x402.forgemesh.io/integer-trivia-lookup
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-integer-trivia-lookup-56fed97e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GBRKWJ_3E7H0smL2tBd80

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 forgemesh-integer-trivia-lookup-56fed97e -d '<json body>'
```

Example prompt: Give me all the math trivia for 144 — whether it's prime, its full prime factorization, if it's in the Fibonacci sequence, its binary and hex forms, Roman numeral, and digit sum.

## When to prefer this

Use this endpoint when you need a comprehensive bundle of mathematical properties for a single integer — especially for quiz bots, math education tools, or any agent that needs primality, factorization, Fibonacci, numeral conversion, and digit sum in one call rather than calling separate services.

## Known failure modes

- Non-integer input (e.g. decimals or strings) may return a validation error or unexpected result
- Very large integers may exceed computation limits or return a timeout
- Empty or missing 'number' field defaults to 42 per schema
- Negative integers or zero may not be handled by Roman numeral or primality logic

## How this service works

Integer trivia lookup: give any whole number and get back whether it's prime, its full prime factorization, whether it appears in the Fibonacci sequence, its binary and hexadecimal forms, Roman numeral equivalent, and digit sum, all computed exactly and instantly. A fun grab-bag for quiz bots, math-education tools, and number-curious agents.

## Output

A JSON object containing: whether the number is prime, its prime factorization as a list of factors, whether it appears in the Fibonacci sequence, binary and hexadecimal string representations, Roman numeral equivalent, and the sum of its digits.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "number": {
   "type": "string",
   "description": "any integer, default 42"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "binary": "110010010",
  "number": 402,
  "is_prime": false,
  "digit_sum": 6,
  "prime_factors": [
   2,
   3,
   67
  ],
  "roman_numeral": "CDII"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-integer-trivia-lookup-56fed97e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
