Prime Number Checker
Check whether a whole number is prime, composite, or neither. Test numbers from 0 to 4,294,967,295 locally, without uploading your input.
Loading tool…
How to use Prime Number Checker
A prime number has exactly two positive divisors: 1 and itself. For example, 97 is prime: none of 2, 3, 5, or 7 divides it, and its square root is less than 10. In contrast, 221 is composite because 13 × 17 = 221. This checker uses small-prime checks and deterministic Miller–Rabin witnesses 2, 7, and 61 within the supported 32-bit range; modular arithmetic uses BigInt.
- Enter number to check.
- Check that the input follows the stated limits and uses consistent units.
- Run the calculator, review the result, then copy or download it.
Good to know
- Only integers from 0 to 4,294,967,295 are accepted. This is not a cryptographic key generator and does not factor composite values.
- Decimal inputs have at most 120 characters and magnitude from 1e-100 to 1e15, or zero. Safely representable integer values are displayed in full; other numeric values are rounded to 12 significant digits. Extreme derived results may underflow or be rejected. Exact integer calculations are identified separately.
Common questions
What calculation does Prime Number Checker perform?
A prime number has exactly two positive divisors: 1 and itself. For example, 97 is prime: none of 2, 3, 5, or 7 divides it, and its square root is less than 10. In contrast, 221 is composite because 13 × 17 = 221. This checker uses small-prime checks and deterministic Miller–Rabin witnesses 2, 7, and 61 within the supported 32-bit range; modular arithmetic uses BigInt.
Is 1 a prime number?
No. A prime has exactly two positive divisors. Zero and one are neither prime nor composite.
Keep going with related tools
All math →Descriptive Statistics Calculator
Summarize a numeric list with mean, median, modes, range, count, and sum.
MathFraction Calculator
Add, subtract, multiply, or divide two fractions and reduce the exact result.
MathChinese Remainder Theorem Calculator
Solve compatible residue and modulus pairs, including noncoprime moduli.
MathInteger Factorization Calculator
Factor a bounded positive integer into exact prime powers and verify reconstruction.
MathModular Arithmetic Calculator
Calculate exact modular powers or inverses for bounded whole numbers.