Prime Number Checker
Test primality for regular and large BigInt integers, find prime factorizations, and locate nearby primes.
Related utilities tools
All Utilities toolsPercentage Calculator
Compute percentage of a value, percent change, ratios, and percentage adjustments.
Scientific Calculator Pro
Scientific calculator with 2D function graphing, 2×2/3×3 matrices, complex numbers, equation solver, and 6 memory registers.
Ratio Calculator
Simplify ratios to lowest terms, scale ratios by any factor, or solve for a missing ratio term.
Unit Converter
Convert length, weight, temperature, area, volume, speed, data storage, and time.
About Prime Number Checker
Check whether small or very large BigInt integers (up to 40 digits) are prime, compute their prime factorizations, and locate the nearest previous and next prime numbers.
How to use Prime Number Checker
- 1
Type or paste any positive integer up to 40 digits (commas and spaces are ignored) or click a preset example.
- 2
Read the instant primality verdict along with the previous and next prime numbers.
- 3
Inspect the prime factorization written in exponent notation for composite numbers.
Frequently asked questions
How does the checker test numbers larger than JavaScript’s safe integer limit?
It uses native JavaScript BigInt arithmetic with deterministic Miller-Rabin bases (exact for all 64-bit integers and strongly accurate beyond).
Why might a 35-digit composite number show a partial factorization?
Primality testing is instant even at 40 digits, while factoring huge semiprimes is intentionally bounded so your browser never freezes.
Are 0 and 1 considered prime numbers?
No. By definition, prime numbers are integers greater than 1 with exactly two positive divisors: 1 and themselves.
