Skip to content
Number Buffet

Number analysis

5

5 is a prime number — divisible only by 1 and itself.

5 is a prime number — divisible only by 1 and itself.

PrimeFermat primeTwin primeSum of two squaresPentagonalFibonacciCatalanAutomorphic

The number itself

Value
5
Digits
1
Digit sum
5

5

Digit sum repeated until one digit remains; equals n mod 9 (with 9 for multiples of 9).

Reversed
5

Reads the same in both directions.

Parity and primality

Parity
Odd

Leaves remainder 1 on division by 2.

Prime
Yes

Divisible only by 1 and itself.

1 distinct prime factor, 1 with multiplicity.

Squarefree
Yes

No prime divides it twice.

Möbius μ(n)
-1

(−1) to the power of 1 distinct prime factors.

Fermat prime
2^2 + 1
Sophie Germain prime
Yes — 2n+1 = 11 is also prime
Twin prime
Yes — paired with 7
Nearest primes
3 ← → 7

A gap of 4 between them.

Divisors

1, 5

Aliquot sum
1

The proper divisors — everything except n itself.

Classification
Deficient

Its proper divisors fall short by 4.

How many integers from 1 to n share no factor with n.

Sums and additive structure

Sum of two squares
Yes

1² + 2² = 5

Sum of three squares
Yes

Legendre's three-square theorem allows it.

Sum of four squares
Yes

Lagrange's four-square theorem: every non-negative integer is, without exception.

Shapes and sequences

Pentagonal number
Yes — the 2nd
Fibonacci number
Yes — index 5
Catalan number
Yes — index 3

Digit curiosities

Summing the squares of its digits falls into the 4 → 16 → 37 → … → 4 cycle.

Armstrong number
Yes, trivially

Every single-digit number equals itself raised to the first power, so all ten qualify trivially.

Harshad number
Yes

Divisible by its digit sum 5 — 5 ÷ 5 = 1.

Its square 25 ends in 5.

Collatz trajectory
5 steps to 1

Peaks at 16 along the way.

Written other ways

Binary
101
Octal
5
In words
five

Is 5 a prime number?

Yes. 5 has no divisors other than 1 and itself.

Nearby numbers

Analyse any number up to a trillion · All generators

Other numeral systems

Beyond the bases and Roman numerals above, these notations write 5 their own way.

Greek (alphabetic)
Εʹ
Babylonian cuneiform
𒐊
Tamil
௫

References

Further reading: Wikipedia · MathWorld · Wikidata

Notations, naming and the links above come from Wikidata, whose structured data is dedicated to the public domain under CC0-1.0. Retrieved 2026-10-07.