Integer GCD

integer-gcd · version 1.0.0 · Numbers & math · free, no key needed

Compute the non-negative greatest common divisor of two canonical integer strings.

Use when you need to: integer gcd · greatest common divisor of two integers · gcd of integers.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": "48",
  "b": "18"
}

Response:

{
  "result": {
    "value": "6"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "integer-gcd",
  "version": "1.0.0",
  "input": {
    "a": "48",
    "b": "18"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/integer-gcd/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"a":"48","b":"18"}'

The machine-readable contract is at /v1/tools/integer-gcd/versions/1.0.0.

CLI

node cli.mjs run integer-gcd 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.