If given a monotonic series (increment=1) or a single number, give the corresonding palindromic prime.
Else, if given a random array of numbers, check if the numbers in the array are palindromic prime or not.
Take base 10 as the reference.
Example
input = 2:5;
output = [3 5 7 11];
input = 17;
output = 787;
input = [7 23 47 11 4 10];
output = [1 0 0 1 0 0];
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers21
Suggested Problems
-
1812 Solvers
-
Create a matrix X, where each column is a shifted copy of the vector v
221 Solvers
-
Find Index of maximum Value and maximum Value of a vector
167 Solvers
-
Replace multiples of 5 with NaN
466 Solvers
-
Let's get back to school, and create multiplication tables
236 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Dyuman, test 3 asks for four numbers, but the answer is a vector with five numbers.
Thanks for pointing it out, Chris. The error has been rectified.