Skip to content
OddsockLocal
Local

PrimeYes

Factors
97
Next prime
101
Prime: YesRuns in this browser. Nothing is uploaded.

Ready

How to use

  1. Enter a positive whole number up to 1,000,000,000,000.
  2. Read Prime. Yes means the only factors are 1 and the number itself.
  3. Read Factors. A prime shows itself. A composite shows the prime factors.
  4. Read Next prime if you need the following prime.

What is Prime check?

97 has no divisors other than 1 and itself, so it is prime. The factor line shows 97, and the next prime after it is 101. The test is trial division: try 2, then odd candidates, up to the square root. If nothing divides the number, it is prime. A composite comes back with its prime factors joined by multiplication signs, and the next prime is the following integer that survives the same test.

Read more

1 is not prime. Its factor list is empty, so the answer is no. 2 is prime, and it is the only even prime. The input is a positive integer up to 10^12, a trillion. Past the square root of that, trial division is still finite, but this page stops at the trillion bound rather than accepting an arbitrary integer.

Next prime is useful when you need a nearby prime and do not want to test candidates by hand. After 97 the evens are skipped by the factor test immediately, 99 is 9 × 11, and 101 holds.

Use cases

  • A student checking 97 before using it as a modulus in a textbook cipher.
  • A teacher showing that 1 is not prime and that its factor list is empty.
  • Someone factoring a composite homework number into primes.
  • A programmer looking for the next prime after a chosen bound.
  • A contest problem that needs both the yes/no and the factorisation in one place.

The integer 97

Positive integer 97.

Prime: yes. Factors: 97. Next prime: 101.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Yes. Nothing from 2 up to the square root of 97 divides it. The next prime is 101.