Integer mod pow

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

Compute base^exponent mod modulus exactly using fast modular exponentiation.

Use when you need to: integer mod pow · modular exponentiation · modular power.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "base": "4",
  "exponent": "13",
  "modulus": "497"
}

Response:

{
  "result": {
    "value": "445"
  }
}

How to call it

MCP

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

{
  "id": "integer-mod-pow",
  "version": "1.0.0",
  "input": {
    "base": "4",
    "exponent": "13",
    "modulus": "497"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/integer-mod-pow/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"base":"4","exponent":"13","modulus":"497"}'

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

CLI

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

Get the client at /clients/cli/.