Inputs
PrimeYes
Ready
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.
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.
Positive integer 97.
Prime: yes. Factors: 97. Next prime: 101.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
Yes. Nothing from 2 up to the square root of 97 divides it. The next prime is 101.
No. A prime has exactly one prime factor, itself. 1 has none, so the page says it is not prime.
As a product of primes. Repeated primes repeat in the list. A prime number's only entry is itself.
A positive integer up to 10^12. Larger values and decimals are rejected.
It tests each following integer. Evens after 2 fail immediately because they divide by 2. 98, 99, and 100 fail; 101 holds.