Dihedral prime


A dihedral prime or dihedral calculator prime is a prime number that still reads like itself or another prime number when read in a seven-segment display, regardless of orientation, and surface. The first few decimal dihedral primes are
The smallest dihedral prime that reads differently with each orientation and surface combination is 120121 which becomes 121021, 151051, and 150151.
Image:Seven segment display-animated.gif|thumb|right|85px|LED-based 7-segment display showing the 16 hex digits.
The digits 0, 1 and 8 remain the same regardless of orientation or surface. 2 and 5 remain the same when viewed upside down, and turn into each other when reflected in a mirror. In the display of a calculator that can handle hexadecimal, 3 would become E upon either reflection or upside down arrangement, but E being an even digit, the three cannot be used as the first digit because the reflected number will be even. Though 6 and 9 become each other upside down, they are not valid digits when reflected, at least not in any of the numeral systems pocket calculators usually operate in. Similarly, A is kept unchanged upon reflection, but its upside down image is not a valid digit. In addition, d and b are reflections of each other, but their upside down images are not valid digits either.
Strobogrammatic primes that don't use 6 or 9 are dihedral primes. This includes repunit primes and all other palindromic primes which only contain digits 0, 1 and 8. It appears to be unknown whether there exist infinitely many dihedral primes, but this would follow from the conjecture that there are infinitely many repunit primes.
The palindromic prime 10180054 + 8×/9×1060744 + 1, discovered in 2009 by Darren Bedwell, is 180,055 digits long and may be the largest known dihedral prime.