Is 504 a Prime Number?

No — 504 is a composite number: 504 = 23 × 32 × 7. It has 24 factors (1, 2, 3, 4, 6, 7, 8, 9, 12, 14, 18, 21, …), more than the two a prime needs. Its smallest prime factor is 2.

Is 504 prime?No — composite
Previous prime503
Next prime509
Prime factorization23 × 32 × 7

Step by step

  1. Smallest divisor: 2 (504 ÷ 2 = 252).
  2. So 504 is composite: 504 = 23 × 32 × 7

The √504 test

To check 504, divide it by each prime up to √504 ≈ 22.45. If none goes in evenly, the number is prime.

TestResultVerdict
504 ÷ 2no remainder✓ factor — so 504 is composite

Nearby primes

Previous prime: 503. Next prime: 509.

Full details: factors of 504 · all primes up to 1,000.

Is 504 prime: questions

Is 504 a prime number?

No — 504 is a composite number: 504 = 2^3 × 3^2 × 7.

What are the factors of 504?

1, 2, 3, 4, 6, 7, 8, 9, 12, 14, 18, 21, 24, 28, 36, 42, 56, 63, 72, 84, 126, 168, 252, 504.

What is the next prime after 504?

509.