Is 171 a Prime Number?
Updated · exact integer math
No, 171 is not a prime number. It's composite.
171 = 3² × 19
Why 171 is not prime
Its digits add up to 9, which is divisible by 3, so 171 is too: 171 ÷ 3 = 57.
Its prime factorization is 3² × 19, and it has 6 divisors: 1, 3, 9, 19, 57, 171.
The nearest primes are 167 (below) and 173 (above).
Numbers around 171
| Number | Prime? | Factorization |
|---|---|---|
| 166 | Composite | 2 × 83 |
| 167 | Prime | 167 |
| 168 | Composite | 2³ × 3 × 7 |
| 169 | Composite | 13² |
| 170 | Composite | 2 × 5 × 17 |
| 171 | Composite | 3² × 19 |
| 172 | Composite | 2² × 43 |
| 173 | Prime | 173 |
| 174 | Composite | 2 × 3 × 29 |
| 175 | Composite | 5² × 7 |
| 176 | Composite | 2⁴ × 11 |
Check another number
Any whole number up to 24 digits. Commas are fine.
Try 1,000,003 or 561. Want a list instead? See the list of prime numbers.
Is 173 prime?
Yes, prime
Number of divisors
2
Previous prime
167
Next prime
179
Divisors: 1, 173
Its only divisors are 1 and 173, so it's prime.
See where 171 sits among the first hundred numbers on the prime numbers chart, or browse every number from 1 to 1,000.
Questions people ask
Is 171 a prime number?
No, 171 is not a prime number. It's composite.
What are the factors of 171?
6 factors: 1, 3, 9, 19, 57, 171.
Is 171 prime or composite?
Composite: 171 = 3² × 19.