Prime number checker
Check whether numbers are prime, see their prime factorization and the next prime.
Related tools
Prime number checker
Paste one number per line — commas and spaces work too — and each is checked for primality instantly. Primes are labeled prime; composites come with their full prime factorization, so 42 becomes 42 = 2 × 3 × 7 and you can see at a glance why it fails. Switch on "Show next prime" and every line also names the nearest prime above the number, which is handy when hunting for a prime table size or hash modulus.
The checker handles whole batches: homework lists, candidate hash-bucket sizes, ID ranges, puzzle inputs. Special cases are explained rather than skipped — 1 is marked not prime by definition, 0 and negative numbers are flagged with a short reason, and anything that isn't a whole number gets a calm per-line note instead of derailing the run. The live tally counts how many numbers you checked and how many turned out prime.
Under the hood the tool uses deterministic trial division: divide by 2 and 3, then test 6k±1 candidates up to the square root. That is exact — no probabilistic test, no false positives — for integers up to 15 digits (under 10^15). Because numbers near that limit take millions of divisions, a single run accepts at most 20 numbers above one billion; smaller numbers are unlimited.
Everything runs in your browser. The numbers you check are never uploaded, logged or shared — useful to know when the list is exam material or production identifiers.