by Christoph Lohe
What is the largest prime number with equal digits you know?
Any number 3...3 has the factor 3, any number 7...7 has the factor 7, and so on, but what's about numbers of the form 1...1?
11 is prime
111 = 3 x 37
1111 = 11 x 101
11111 = 41 x 271
.....
Let us write it in another way: [n] shall be the number 1...1 with n digits of "1". Then:
[2] is prime
[3] is composite
[4] is composite
[5] is composite
.....
Arranging the n digits of [n] into blocks, you can easily see that [n] is composite if n is composite, for example:
[15] = 111111111111111
or
[15] = 111 111 111 111 111
or
[15] = 111 x 1001001001001
or
[15] = 11111 11111 11111
or
[15] = 11111 x 10000100001
Therefore n, the number of "1" digits, must itself be a prime number if [n]=1...1 is a serious prime number candidate.
The answer will be shown at the end of this page. Please do not scroll down if you want to evaluate this question by yourself.
For other number systems than decimal, any number [n] is even if the base is odd. Prime numbers [n] can only appear for an even base of the number system. Examples are given in the following table. The first column shows the even number system base up to one hundred. The title row shows the prime number candidate in the notation [n] where n is number of "1" digits. For the reason discussed above, only numbers [n] with a prime number of digits were investigated as prime number candidates. The table gives the candidates with n=2, 3, 5, 7, 11, and 13 digits. The cells show the prime candidate in a decimal format whereby prime numbers are marked bold. Only numbers up to 100000 were investigated in this table.
| base | [2] | [3] | [5] | [7] | [11] | [13] |
| 2 | 3 | 7 | 31 | 127 | 2047 | 8191 |
| 4 | 5 | 21 | 341 | 5461 | ||
| 6 | 7 | 43 | 1555 | 55987 | ||
| 8 | 9 | 73 | 4681 | |||
| 10 | 11 | 111 | 11111 | |||
| 12 | 13 | 157 | 22621 | |||
| 14 | 15 | 211 | 41371 | |||
| 16 | 17 | 273 | 69905 | |||
| 18 | 19 | 343 | ||||
| 20 | 21 | 421 | ||||
| 22 | 23 | 507 | ||||
| 24 | 25 | 601 | ||||
| 26 | 27 | 703 | ||||
| 28 | 29 | 813 | ||||
| 30 | 31 | 931 | ||||
| 32 | 33 | 1057 | ||||
| 34 | 35 | 1191 | ||||
| 36 | 37 | 1333 | ||||
| 38 | 39 | 1483 | ||||
| 40 | 41 | 1641 | ||||
| 42 | 43 | 1807 | ||||
| 44 | 45 | 1981 | ||||
| 46 | 47 | 2163 | ||||
| 48 | 49 | 2353 | ||||
| 50 | 51 | 2551 | ||||
| 52 | 53 | 2757 | ||||
| 54 | 55 | 2971 | ||||
| 56 | 57 | 3193 | ||||
| 58 | 59 | 3423 | ||||
| 60 | 61 | 3661 | ||||
| 62 | 63 | 3907 | ||||
| 64 | 65 | 4161 | ||||
| 66 | 67 | 4423 | ||||
| 68 | 69 | 4693 | ||||
| 70 | 71 | 4971 | ||||
| 72 | 73 | 5257 | ||||
| 74 | 75 | 5551 | ||||
| 76 | 77 | 5853 | ||||
| 78 | 79 | 6163 | ||||
| 80 | 81 | 6481 | ||||
| 82 | 83 | 6807 | ||||
| 84 | 85 | 7141 | ||||
| 86 | 87 | 7483 | ||||
| 88 | 89 | 7833 | ||||
| 90 | 91 | 8191 | ||||
| 92 | 93 | 8557 | ||||
| 94 | 95 | 8931 | ||||
| 96 | 97 | 9313 | ||||
| 98 | 99 | 9703 | ||||
| 100 | 101 | 10101 |
So, now back to the original question: what is the largest prime number with equal digits you know? Eleven? No, you should at least answer 55987 because this number is given as a prime in the table above, it is "1111111" or [7] in a number system with base 6. Ok, let us turn to the more difficult question what's about our decimal number system. It is fun to evaluate it by yourself, please try it! If you do not want to try then look at my answer.
| updated: 09.01.2004 | ||