Skip to main content

Prime Checker

Trial-division primality for integers up to 1,000,000,000,000 in absolute value.

Rated 4.7 out of 5 based on 340 reviews

Results

How to use Prime Checker

  1. Enter integer. Leave a field blank only when the page says the value is missing, not by typing 0 unless 0 is a real value.
  2. Read the result rows under the form. Errors appear in the status line. Nothing is uploaded.
  3. Rounding follows IEEE floating point in this browser unless the page says it uses integers or BigInt.

Prime Checker

Prime check

ComputesTrial-division primality for integers up to 1,000,000,000,000 in absolute value.
IncludesPrime check
IncludesTrial division
Enginepercentage
UploadNone
AdviceArithmetic only

What Prime Checker is

Negatives, 0, and 1 are not prime. Evens other than 2 are composite. Trial division tests odd divisors up to sqrt(n).

The formula runs in this tab. CZNull does not receive the numbers.

How this page computes

Factorization is prime factors. This page does not run Miller-Rabin; it is exact trial division in the stated range.

Entities and related jobs

Trial-division primality for integers up to 1,000,000,000,000 in absolute value. Named features: Prime check, Trial division.

See also Prime Factorization, GCD Calculator, Factorial Calculator, Percentage Calculator, Scientific Calculator, Fraction Calculator.

Use cases

Homework and small cryptography demos. It is not a 2048-bit primality service.

Limits

Invalid input appears in the status line. IEEE floating point applies unless a row says otherwise. CZNull does not receive the numbers.

Prime Checker questions

Does this page upload my numbers?
No. The formula runs in the page you opened. CZNull does not receive the values.
What does Prime Checker compute?
Negatives, 0, and 1 are not prime.
Why is this its own URL?
Search queries name this job. Nearby modes stay on their own pages so inputs do not mix. Related calculators are linked below Prime Checker.
Is 97 prime?
Yes.
Is 1 prime?
No. Trial division up to 10^12, not Miller-Rabin.
Can I treat the result as official?
No. Rounding and real-world rules can differ. Use the page to check the arithmetic.