KiloAtlas
EN
EnglishBahasa IndonesiaTiếng Việt

Prime number checker

Classify an integer as prime, composite or neither.

Classification

Prime

Formula

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

Integer = 97

How to use

  1. Enter an integer from 0 to 1000000000.
  2. Read the classification.
  3. Use prime factorization to investigate a composite.

Examples

  • 97 is prime.
  • 49 = 7 × 7, so it is composite.

Frequently asked questions

Is 1 prime?

No. It has only one positive divisor; 0 and 1 are neither prime nor composite.

Is 2 prime?

Yes. Its positive divisors are 1 and 2. It is the only even prime.

Is the test probabilistic?

No. Trial division checks all possible prime factors through the square root.

Sources

Updated:

Related tools

Search conversion tools