Is 504 a prime number?

Prime Number Checker
Number

Is 504 a prime or composite number?

Answer

Number 504 is not a Prime

504 = 2³ × 3² × 7

504 has 24 divisors, not two: a prime is divisible only by 1 and itself.

Primes up to √504

22² = 484 ≤ 504 < 529 = 23², so it is enough to try primes up to 22

  • ÷2 divides

504 ÷ 2 = 252 — 2 divides 504, so 504 is composite

See Also

FAQ

Is 504 a prime or composite number?

Number 504 is not a Prime

How many factors are in a number 504?

24

How to check if 504 is prime?

Divide 504 by the primes in order: 22² = 484 ≤ 504 < 529 = 23², so it is enough to try primes up to 22. The first one that divides it is 2: 504 ÷ 2 = 252, so 504 is composite.