← Back to directory

All AI Data API - Number theory toolkit: primality, factorization, gcd/lcm, Bezout, modular inverse and power, CRT, totient, div

https://allai-api.allaihq.workers.dev/v1/tools/number_theory

Overview

Exact integer math using BigInt, for puzzles, cryptography teaching, hashing parameters and interview prep. Operations: is_prime (deterministic Miller-Rabin below 3.3e24, strong probable-prime beyond), factorize (trial division plus Pollard rho, numbers up to 10^12), next_prime / prev_prime, prime_range (primes between two numbers, span up to 12,000), nth_prime (up to 8,000th), $0.005 per successful call (USDC on Base). 3 free trial calls a day. Operated by All AI LLC.

Protocol x402 (POST)
Price $0.0050
Payment Asset USDC
Payment Network base
Category data
Provider All AI LLC (All AI Data API)
Source self-registered
Indexed 2026-12-03 13:09:00

Health

Status healthy
Latency (p50) 370ms
Uptime (30d) 100.0%
Reliability Score 90/100
Last Checked 2026-12-05 14:41:39
Last Healthy 2026-12-05 14:41:39
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Recent Health Checks

Time Status HTTP Latency Error
2026-12-05 14:41:39 healthy 402 1429ms
2026-12-05 13:41:19 healthy 402 370ms
2026-12-05 12:41:03 healthy 402 382ms
2026-12-05 11:45:52 healthy 402 383ms
2026-12-05 10:41:52 healthy 402 354ms
2026-12-05 09:40:23 healthy 402 382ms
2026-12-05 08:43:44 healthy 402 348ms
2026-12-05 07:40:18 healthy 402 359ms
2026-12-05 06:37:46 healthy 402 358ms
2026-12-05 05:38:31 healthy 402 717ms
2026-12-05 03:49:59 healthy 402 1308ms
2026-12-05 02:40:41 healthy 402 360ms
2026-12-05 01:39:38 healthy 402 351ms
2026-12-05 00:55:09 healthy 402 370ms
2026-12-03 18:42:12 healthy 402 582ms