Marketplace · API · x402

agent402.tools/api/gcd-lcm

Greatest common divisor and least common multiple of two or more integers, computed exactly (arbitrary precision). Useful for cycle alignment, scheduling periods and fraction work. Signs are ignored; a zero makes the LCM zero. Results beyond 2^53 come back as strings so no digit is lost.

Endpointhttps://agent402.tools/api/gcd-lcm
TrustNot checked yet
PricingPay per call with x402, no account. Call it to get an exact quote before paying.
networkeip155:8453
schemeexact
pay to0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0
methodPOST
last updated2026-10-27T11:57:46.134Z

Use it

Call it (an x402 client pays automatically)

curl -i https://agent402.tools/api/gcd-lcm
# 402 reply -> sign PAYMENT-REQUIRED with an x402 client (e.g. @x402/fetch) -> retry with PAYMENT-SIGNATURE

This listing as JSON

curl https://aipaygen.com/v1/catalog/api/x402-920cc5db67b8c791

Search the whole marketplace from your agent (MCP)

{
  "mcpServers": {
    "aipaygen": {
      "url": "https://aipaygen.com/mcp"
    }
  }
}