All-ones binary

The solid-color ceiling of binary — home of the Mersennes.

A number whose binary digits are all 1s, i.e. 2ᵏ−1 (a Mersenne number): 1, 3, 7, 15, 31… like 1023 = 1111111111₂.

19
Exact matches
1 in 52,632
Odds
0.0019%
Share
314 EP
Base EP

Your record

Not unlocked yet — roll today's number →

Only 19 all-ones binary numbers exist in the whole 0–1,000,000 range: 2¹−1 through 2¹⁹−1. The 20th, 2²⁰−1 = 1,048,575, is shut out by the range boundary — rarity by fence, not by luck.

Every all-ones binary number is automatically a binary palindrome (a run of 1s reads the same both ways), but the converse is far from true: only these 19 of the 2,000 binary palindromes are solid. The most extreme branch of the palindrome family.

These are the famous Mersenne numbers M(k) = 2ᵏ−1. Seven of the 19 in range are prime (3, 7, 31, 127, 8191, 131071, 524287, for k = 2, 3, 5, 7, 13, 17, 19) — nearly every largest-known prime has had this shape. Two millennia of prime hunting, and the hunt keeps returning to this street.

Smallest examples

Notable examples

524,287 Largest all-ones binary in range: nineteen 1s — and a Mersenne prime.
1,023 Ten 1s. Every programmer's old friend: 1 KiB minus 1.

Highest-scoring

The 8 best-scoring numbers of four digits or more that carry this pattern — shorter numbers are excluded because their length alone dominates any score ranking.

4,095 Singular Top 0.01% 807 EP
8,191 Singular Top 0.04% 689 EP
131,071 Singular Top 0.04% 685 EP
1,023 Singular Top 0.05% 661 EP
16,383 Singular Top 0.06% 659 EP
524,287 Singular Top 0.08% 623 EP
2,047 Singular Top 0.08% 622 EP
32,767 Singular Top 0.09% 618 EP

Related Entries

← Number Atlas