{"uid":"cap_eD6tLVXz1YWvi0785Ld_A","slug":"delx-primality-check-94908a71","name":"Delx Primality Check","description":"Primality check. Call for teaching demos, ID heuristics, or lightweight number filters (bounded integers). Returns whether n is prime with a clear boolean field. $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.","url":"https://api.delx.ai/api/v1/x402/is-prime","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","description":"Integer input (see tool summary for allowed range)."}}},"responseSchema":{"type":"json","example":{"n":42,"schema":"delx/is-prime/v1","is_prime":false}},"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_kDii6LSdJ7mNMhmF4Jc1h","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 integer is prime and returns a boolean result for $0.001 USDC per call.","exampleAgentPrompt":"Can you check whether 104729 is a prime number?","exampleUseCases":[{"title":"Teaching demo for prime numbers","prompt":"I'm building a math lesson demo — can you check if 37 is prime so students can see a real-time primality result?"},{"title":"Filtering candidate ID numbers","prompt":"I have a candidate integer ID of 7919 — can you tell me if it's prime so I can use that as a lightweight filter heuristic?"},{"title":"Quick number theory lookup","prompt":"Is 999983 a prime number? I need a definitive yes or no for a puzzle I'm working on."}],"resultDescription":"A deterministic first-party JSON response containing a clear boolean field indicating whether the submitted integer n is prime or not.","failureModes":["Integer out of allowed range — structured validation error returned, no charge","Non-integer input provided — validation error with no billing","Payment not provided or insufficient — x402 payment required response","Network timeout or server error — 5xx response"],"whenToPreferThis":"Choose this endpoint when you need a cheap, deterministic, no-subscription primality check for bounded integers — especially in agent pipelines, teaching demos, or lightweight ID heuristics where a local library is unavailable. It requires no API key and charges only on successful calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:33.106Z","isFirstParty":false}