Prime Number Checker and Generator

Check exact integer primality from 2 to 1,000,000,000 with a factor witness, or generate primes through an inclusive limit up to 100,000.

Check whether a whole number is prime and see a factor witness for composites, or list every prime through a bounded limit. Calculations run in this browser. The checker accepts 2 through 1,000,000,000; the generator accepts limits through 100,000.

Check if a number is prime

Enter a positive whole number from 2 to 1,000,000,000.

Digits only. Decimals and values above the stated limit are not accepted.

Try an example

97 is prime.

No divisor was found through floor(√97) = 9.

Generate primes up to a limit

The limit is inclusive and cannot exceed 100,000.

Enter a whole number from 2 to 100,000.

How the prime checker works

A prime is a whole number greater than 1 with exactly two positive divisors: 1 and itself. To test a value, the checker divides by possible factors through its square root. If a divisor is found, the result shows a factor equation; otherwise, the number is prime. The maximum input keeps this exact trial-division check bounded.

The generator uses the Sieve of Eratosthenes to list every prime from 2 through your inclusive limit. The checker accepts inputs through 1,000,000,000, and the generator is capped at 100,000. These limits are for a responsive browser tool; this is not a cryptographic primality test.

Prime number checker features

Check whole numbers through 1,000,000,000, see a smallest-factor witness for composites, or generate every prime through an inclusive limit up to 100,000.

  • Classify supported integers with exact trial division through the square root.
  • See a smallest-factor equation for composite numbers and the stopping bound for primes.
  • Generate a bounded prime list with its inclusive limit and count, then copy or download it.
  • Use one-click examples for primes, composites, 1, and a prime square.
  • Run checks and generation in this browser without sending inputs to a server.

Prime number checker FAQ

What is a prime number?

A prime number is an integer greater than 1 with exactly two positive divisors: 1 and itself.

Is 1 prime or composite?

Neither. The number 1 has only one positive divisor, so it is not prime and is not composite.

How does the checker decide whether a number is prime?

It tests possible divisors through the floor of the square root. A divisor proves a number is composite; if none divides it, the number is prime within the supported input range.

What is the largest number this checker accepts?

It accepts positive integers from 2 through 1,000,000,000. The checker uses exact integer arithmetic within this bound and trial division; it is not a cryptographic primality service.

How many primes can the generator list?

It lists every prime from 2 through an inclusive limit up to 100,000.

Infinio Tools
© 2026 Infinio Labs