Home / Servers / Calculators / is_prime
Is prime
An MCP tool from the Calculators server, hosted on mcp.hjlabs.in.
Test whether a whole number is prime (deterministic up to 3×10^24, Miller-Rabin beyond), and give the next and previous primes for numbers under 10^15.
Name on the gateway: math__is_prime · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
number required | string | A whole number, any size up to 1000 digits. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "math__is_prime",
"arguments": {
"number": "…"
}
}Or connect the Calculators server directly, which lists 28 tools including this one:
claude mcp add --transport http hj-math https://mcp.hjlabs.in/mcp/math \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the is prime tool with number set to ….