Resultados exactos y deterministas para cada entero hasta 10¹⁵: Miller-Rabin, sin estimaciones.
Todo el cálculo y la conversión se ejecutan en local en el navegador mediante el motor V8 o WebAssembly. Los archivos y el texto nunca salen de tu dispositivo.
Acerca de
Four modes built on one deterministic engine: test any integer up to 10¹⁵ for primality (Miller-Rabin with a proven witness set — never a probabilistic guess), factor composites into primes with exponent form and divisor counts, list every prime in a range with a segmented sieve, and batch-check up to 1,000 numbers at once. Negative numbers are handled honestly: |n| is tested, and the interface says so rather than pretending a negative can be prime.
Cómo usar
Formatos y especificaciones
Preguntas frecuentes
How does the primality test work?
Deterministic Miller-Rabin: the first 12 prime bases prove primality for every number below 3.3×10²⁴ — far above this tool's 10¹⁵ cap. Every verdict is a mathematical fact, not a probability.
Why is 1 not prime?
By definition: a prime has exactly two divisors. 0 and ±1 have none of the required structure, and the tool labels them "neither prime nor composite" instead of lumping them in with composites.
What about negative numbers?
The absolute value is tested, because −17's magnitude is prime — but negative numbers are not prime numbers under the usual definition, and the result says so explicitly.
How large can numbers be?
Up to 10¹⁵ in magnitude — every input is parsed as a BigInt, so precision never depends on floating point. Composites are factored with Pollard's Rho, which stays in the millisecond range at this cap.
Can I list primes in a range?
Yes — Range mode uses a segmented sieve over windows up to 1,000,000 integers wide with endpoints up to 10¹², and exports the list as CSV.
What are prime numbers used for?
Prime factorisation underpins fraction simplification, modular arithmetic and public-key cryptography — checking that RSA moduli are built from exactly two primes is literally a primality workload.
Limitaciones
- Inputs up to 10¹⁵; ranges up to 10¹² wide by 1,000,000; batches up to 1,000 numbers.