Is it a prime number calculator

Test whether a nonnegative integer up to one billion is prime.

Enter values

Start with the example below, or enter your own values.

How it works

Trial division tests possible factors through the square root; zero and one are not primes.

Try an example

Integer: 97. The form starts with these values; change them to explore your own case.

Example result: Prime

  1. Trial division through floor(sqrt(n)).

Learn more in Exact number theory and congruences.

Results are calculated locally. Floating-point tools provide numerical approximations, not formal proof certificates.