The number 1880111 is a dihedral prime (or dihedral calculator prime) because on a seven-segment display it is prime (a) forward, (b) upside-down, (c) in a mirror, and (d) in a mirror upside-down. The number 120121 is the smallest dihedral prime that forms four different numbers read in those four ways.
Write a function to list the dihedral primes less than or equal to the input number.

Solution Stats

39 Solutions

13 Solvers

Last Solution submitted on May 25, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers13

Suggested Problems

More from this Author323

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!