Home / Servers / Calculators / prime_factors
Prime factors
An MCP tool from the Calculators server, hosted on mcp.hjlabs.in.
Prime factorisation of a whole number (up to about 10^24 for numbers with small factors), with the factors grouped as powers, the divisor count and the sum of divisors.
Name on the gateway: math__prime_factors · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
number required | string | A whole number >= 2, as text or number. |
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__prime_factors",
"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 prime factors tool with number set to ….