Is 997 a Prime Number?

YES — PRIME NUMBER

Yes, 997 is a prime number. Its only positive divisors are 1 and 997 (making it the 168th prime number).

Prime Factorization
997
Positive Divisors
2
Previous Prime
991
Next Prime
1009

Why 997 Is Mathematically Notable

997 is the largest three-digit prime number (the 168th prime overall) and is widely used as a hash table modulus in algorithms.

Step-by-Step Proof: Why 997 Is Prime

  1. 1

    Compute the square-root trial limit: √997 ≈ 31.58, so we only need to test prime divisors up to ⌊√997⌋ = 31.

  2. 2

    There are 11 primes ≤ 31: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31.

  3. 3

    Dividing 997 by each of those primes leaves a non-zero remainder every time — proving conclusively that 997 has no proper prime divisors and is a prime number.

Prime Factorization & All Factors of 997

Open 997 in Visual Factor Tree →

997 has 2 positive divisors with divisor sum σ(997) = 998 and aliquot sum s(997) = 1 (Deficient number).

1 997

Mathematical Properties & Number Bases of 997

Parity
Odd
Aliquot Class
Deficient number
Twin Prime
No
Binary (Base 2)
1111100101
Octal (Base 8)
1745
Hexadecimal (Base 16)
0x3E5

Test Another Number Instantly

Enter any integer (including 100+ digit BigInt numbers) to test primality in our full Prime Number Checker.

Frequently Asked Questions About 997

Is 997 a prime number or a composite number?

Yes, 997 is a prime number. Its only positive divisors are 1 and 997 (making it the 168th prime number).

What are all the positive factors (divisors) of 997?

The 2 positive divisors of 997 are: 1, 997. Their sum is σ(997) = 998.

What is the prime factorization of 997?

Because 997 is already prime, its prime factorization is simply 997.

What are the closest prime numbers before and after 997?

The previous prime before 997 is 991, and the next prime after 997 is 1009.

← Previous curated number: 323 Next curated number: 1001 →

Prime Number Tools & Reference Guides

Explore dedicated charts, visual factor trees, range generators, and step-by-step proofs for commonly searched numbers.