# ForgeMesh Math Fact Generator

> ForgeMesh Math Fact Generator 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).

Computes mathematical properties of any integer including primality, factorization, perfect-square status, Fibonacci membership, and alternate representations in binary, hex, and Roman numerals.

## Facts

- Endpoint: POST https://x402.forgemesh.io/math-fact-generator
- 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-math-fact-generator-c35f892b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VgEfwlxteJjsPHP9PHOoZ

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-math-fact-generator-c35f892b -d '<json body>'
```

Example prompt: What are all the math facts about the number 144 — is it prime, a perfect square, a Fibonacci number, and what does it look like in binary, hex, and Roman numerals?

## When to prefer this

Use this endpoint when you need instant, deterministic mathematical analysis of a specific integer — especially when you want multiple properties in a single call (primality, factorization, Fibonacci, perfect-square, and numeral conversions) without building custom logic. Ideal for trivia generation, educational tools, or validation pipelines that need to annotate integers with mathematical context.

## Known failure modes

- Non-integer or non-numeric string input may return an error or unexpected result
- Extremely large integers may exceed processing limits
- Empty or missing 'number' field defaults to 42 rather than returning an error
- Roman numeral representation may fail or be undefined for very large numbers (>3999 in standard notation)

## How this service works

Math fact generator for integers: computes a bundle of properties for any number you supply, primality, factorization, perfect-square status, Fibonacci membership, and alternate representations in binary, hex, and Roman numerals. Deterministic and instant, with no external lookup involved. Good for trivia games, validation logic, or satisfying idle curiosity about a specific integer.

## Output

A bundle of computed properties for the supplied integer: whether it is prime, its prime factorization, whether it is a perfect square, whether it belongs to the Fibonacci sequence, and its representations in binary, hexadecimal, and Roman numerals.

## 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-math-fact-generator-c35f892b/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)
