Prime Number Checker – Is It Prime? Factors and Prime Lists

Check if a number is prime, factorise it, or list all prime numbers between two values.

결과

97 는 소수입니다.

97 has exactly two divisors, 1 and itself.

이전 프라임

89

다음 프라임

101

약수의 개수

2

목차

The prime number checker tells you instantly whether a number is prime, and if it is not, shows its prime factorisation and the smallest divisor that proves it. It also finds the previous and next prime, and can list every prime number in a range. For example, 97 is prime, while 91 is not, because 91 = 7 × 13.

  1. Choose Is it prime? and enter a number up to one quadrillion (10^15), or
  2. choose List primes in a range and enter the start and end, such as 1 and 100.

A prime number is a whole number greater than 1 whose only divisors are 1 and itself. The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29. Two is the only even prime. The number 1 is not prime, and every whole number above 1 is either prime or a product of primes in exactly one way, which is why factorisations are unique.

There are 25: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97. There are 168 primes below 1,000 and 1,229 below 10,000.

Small numbers are tested by division. Large numbers use the Miller–Rabin test with a fixed set of bases that is proven to give the right answer for every number in range, so a result of "prime" is certain, not a probability. Factorisation combines trial division with Pollard's rho method, which splits numbers made of two large primes quickly.

Related: GCD and LCM calculator and number to words.

자주 묻는 질문

Is 1 a prime number?

No. A prime has exactly two divisors, 1 and itself. The number 1 has only one divisor, so it is neither prime nor composite.

How many prime numbers are there between 1 and 100?

There are 25 prime numbers between 1 and 100, from 2 to 97.

Is 2 a prime number?

Yes. 2 is the smallest prime and the only even one, because every other even number is divisible by 2.

How do you check if a large number is prime?

Test divisibility by primes up to its square root, or for very large numbers use the Miller–Rabin test, which this checker runs with bases that make the answer exact up to 10^15.

Is 91 a prime number?

No. 91 = 7 × 13.