Catalog/math-is-prime

Utilities

Bounded primality test API

Check whether a safe integer up to 1e12 is prime using local deterministic trial division.

Price$0.01per request
MethodPOST
Route/v1/math/is-prime
StatusLive
MIME typeapplication/json
Rate limit180/minute
CacheNo cache
mathprimefactorizationcryptography
API URLhttps://x402.hexl.dev/v1/math/is-prime
Integration docs
Example request
{
  "value": 97
}
Example response
{
  "value": 97,
  "isPrime": true,
  "provider": "local-bounded-number-theory"
}
Input schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}