← All tool references

Math · not_available

Prime Factorization Calculator

Break a positive integer into prime factors and show exponent notation, factor count, and factor sum.

Open public tool

Overview

Category
Math
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/prime-factorization-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/prime-factorization-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

number · number · required
Enter the positive integer used in the calculation.
{
    "type": "object",
    "properties": {
        "number": {
            "type": "number",
            "description": "Enter the positive integer used in the calculation.",
            "minimum": 2,
            "maximum": 1000000000000
        }
    },
    "required": [
        "number"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

factorization · string
Prime factorization produced by the calculation.
prime_factors · array
Prime factors produced by the calculation.
divisor_count · number
Number of positive divisors produced by the calculation.
divisor_sum · number
Sum of positive divisors produced by the calculation.
{
    "type": "object",
    "properties": {
        "factorization": {
            "type": "string",
            "description": "Prime factorization produced by the calculation."
        },
        "prime_factors": {
            "type": "array",
            "description": "Prime factors produced by the calculation."
        },
        "divisor_count": {
            "type": "number",
            "description": "Number of positive divisors produced by the calculation."
        },
        "divisor_sum": {
            "type": "number",
            "description": "Sum of positive divisors produced by the calculation."
        }
    },
    "additionalProperties": false
}

Prime Factorization Calculator example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/prime-factorization-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "number": 7560
}'
{
    "ok": true,
    "data": {
        "slug": "prime-factorization-calculator",
        "result": {
            "values": {
                "factorization": "7560 = 2^3 × 3^3 × 5 × 7",
                "prime_factors": [
                    {
                        "prime": 2,
                        "exponent": 3
                    },
                    {
                        "prime": 3,
                        "exponent": 3
                    },
                    {
                        "prime": 5,
                        "exponent": 1
                    },
                    {
                        "prime": 7,
                        "exponent": 1
                    }
                ],
                "divisor_count": 64,
                "divisor_sum": 28800
            },
            "display": {
                "display": "7560 = 2^3 × 3^3 × 5 × 7"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.