How to use this calculator

Test divisibility up to the square root of the number.

The method

A prime has exactly two positive divisors: 1 and itself.

Enter your values in the labeled fields and choose Calculate. The result panel shows the answer and supporting values when useful.

WORKED EXAMPLE INPUT

Whole number: 997

Select Calculate to evaluate these example values.

Scope and limitations

Whole numbers from 2 through 1 trillion are supported.

Common questions

Can I change the example values?

Yes. Replace every prefilled value with your own inputs and calculate again.

Are displayed results exact?

Some results are rounded for readability. Keep extra precision when the next step depends on the result.

Methods & verification

Formulas use standard mathematical definitions and fixed unit factors where applicable. See our methodology for numerical conventions, rounding, privacy, and limitations.