Prime Check

Calculators REST API MCP

Check whether an integer is prime. For composite numbers, returns the prime factorisation. Supports inputs up to 2^53-1 but is only fast for n ≲ 10^12.

This page documents the HTTP endpoint POST /api/tools/prime-check/execute. See the MCP reference →

View as Markdown

Call it over REST

POST https://api.findutils.com/api/tools/prime-check/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/prime-check/execute \
  -H "Content-Type: application/json" \
  -d '{
    "n": 97
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/prime-check

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
n integer yes Integer to test. Must be ≥ 2.

Example arguments (verified)

{
  "n": 97
}

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:prime_check after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Prime Check →

More Calculators tools