Is 540 a Prime Number?

No — 540 is a composite number: 540 = 22 × 33 × 5. It has 24 factors (1, 2, 3, 4, 5, 6, 9, 10, 12, 15, 18, 20, …), more than the two a prime needs. Its smallest prime factor is 2.

Is 540 prime?No — composite
Previous prime523
Next prime541
Prime factorization22 × 33 × 5

Step by step

  1. Smallest divisor: 2 (540 ÷ 2 = 270).
  2. So 540 is composite: 540 = 22 × 33 × 5

The √540 test

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

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

Nearby primes

Previous prime: 523. Next prime: 541.

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

Is 540 prime: questions

Is 540 a prime number?

No — 540 is a composite number: 540 = 2^2 × 3^3 × 5.

What are the factors of 540?

1, 2, 3, 4, 5, 6, 9, 10, 12, 15, 18, 20, 27, 30, 36, 45, 54, 60, 90, 108, 135, 180, 270, 540.

What is the next prime after 540?

541.