{
  "format": "delx/intent-card/v1",
  "id": "prime-factors-api",
  "intent": "Prime Factors for Agents for an agent workflow",
  "title": "Prime Factors for Agents API for agents",
  "description": "Prime factorization. Use when agents need factorization for puzzles, crypto teaching, or ratio breakdowns (bounded n). Returns the factor list as structured JSON. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.",
  "keywords": [
    "Prime Factors for Agents API",
    "Prime Factors for Agents for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/prime-factors-api",
  "machine_url": "https://commerce.delx.ai/intents/prime-factors-api.json",
  "recommendation": {
    "tool_name": "util_prime_factors",
    "service_name": "Prime Factors for Agents",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/prime-factors",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "n": {
          "type": "integer",
          "description": "n",
          "minimum": 2,
          "maximum": 1000000
        }
      },
      "required": [
        "n"
      ]
    },
    "example_input": {
      "n": 42
    },
    "example_output": {
      "schema": "delx/prime-factors/v1",
      "n": 42,
      "factors": [
        2,
        3,
        7
      ]
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/prime-factors -m POST -H 'x-delx-source: intent-card-prime-factors-api' --max-amount 0.001 -b '{\"n\":42}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-prime-factors-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/prime-factors"
  }
}
