# GCD and LCM Calculator

> GCD and LCM Calculator is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Computes the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of two integers

## Facts

- Endpoint: POST https://kihustle.tech/agents/api/v1/gcd-lcm-calculator
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gcd-and-lcm-calculator-b505dab1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iYSaOjQ34uNxEVPYO3e8G

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 gcd-and-lcm-calculator-b505dab1 -d '<json body>'
```

Example prompt: Can you calculate the GCD and LCM of 48 and 180 for me?

## When to prefer this

Use this endpoint when you need a quick, paid-API computation of GCD and/or LCM for two integers without running local code — suitable for agents that lack a code-execution environment or need a consistent external compute call for number-theory tasks.

## Known failure modes

- Non-integer inputs may cause validation errors or unexpected results
- Missing required fields 'a' or 'b' will likely return an error
- Division by zero scenarios (e.g. one input is 0) may return undefined behavior or error
- Very large integers may cause overflow or timeout

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

A JSON object indicating the computed result (GCD and/or LCM of the two input integers) along with a success status field.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "integer"
  },
  "b": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gcd-and-lcm-calculator-b505dab1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
