The sequence starting 23, 37, 53, 73, 113, 131, 137, 173, 179, 197… is interesting because each term is a delete-a-digit prime—that is, a prime number of two or more digits such that deleting any one digit leaves a prime number. For example, deleting the 1 from 137 leaves 37, deleting the 3 leaves 17, and deleting the 7 leaves 13.
Write a function that lists the delete-a-digit primes less than or equal the input number.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers21
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3061 Solvers
-
Return the first and last characters of a character array
11796 Solvers
-
Calculate the Hamming distance between two strings
341 Solvers
-
1483 Solvers
-
557 Solvers
More from this Author321
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!