Is 789 a Prime Number?
No — 789 is a composite number: 789 = 3 × 263. It has 4 factors (1, 3, 263, 789), more than the two a prime needs. Its smallest prime factor is 3.
Is 789 prime?No — composite
Previous prime787
Next prime797
Prime factorization3 × 263
Step by step
- Smallest divisor: 3 (789 ÷ 3 = 263).
- So 789 is composite: 789 = 3 × 263
The √789 test
To check 789, divide it by each prime up to √789 ≈ 28.09. If none goes in evenly, the number is prime.
| Test | Result | Verdict |
|---|---|---|
| 789 ÷ 2 | remainder 1 | ✗ not a factor |
| 789 ÷ 3 | no remainder | ✓ factor — so 789 is composite |
Nearby primes
Previous prime: 787. Next prime: 797.
Full details: factors of 789 · all primes up to 1,000.
Is 789 prime: questions
Is 789 a prime number?
No — 789 is a composite number: 789 = 3 × 263.
What are the factors of 789?
1, 3, 263, 789.
What is the next prime after 789?
797.