{"uid":"cap_ioX_9xTvQg6VkciMW2gAN","slug":"prime-number-checker-3c188418","name":"Prime Number Checker","description":"Check if a number is prime.","url":"https://sovereign-x402-zeta.vercel.app/api/v1/prime/check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vPBLy8KZrrvuhw92cZbYz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a given number is prime via a paid HTTP API endpoint.","exampleAgentPrompt":"Can you check whether 1000003 is a prime number?","exampleUseCases":[{"title":"Verify prime for cryptographic key generation","prompt":"I'm generating RSA keys and need to confirm that 7919 is actually a prime number — can you verify that for me?"},{"title":"Math homework primality check","prompt":"My kid is doing a number theory assignment — is 561 a prime number or not?"},{"title":"Filter prime candidates in a sequence","prompt":"I've got the number 104729 from a random generator — can you check if it's prime before I use it?"}],"resultDescription":"Returns a boolean or structured result indicating whether the submitted number is prime, along with the number itself. The response confirms primality (true/false) for the given integer input.","failureModes":["Missing or malformed 'number' field in request body returns a 400 error","Non-integer or negative number input may result in a validation error","Payment not provided or invalid USDC transaction leads to 402 Payment Required","Network timeout on the Vercel serverless function results in a 504 error","Very large integers may exceed computation limits or timeout"],"whenToPreferThis":"Use this endpoint when you need a quick, on-demand primality check for a single integer and are operating in an agentic or automated context that already handles x402 micropayments. Ideal for workflows where math validation is a step in a larger pipeline (e.g., cryptography, number theory tasks, educational tools) and you need a reliable hosted check without running local code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:37:14.921Z","isFirstParty":false,"canonicalSlug":"prime-number-checker-3c188418"}