Check if a number is a prime palindrome
Check if a number is a prime palindrome
Write a function to check if a number is both prime and a palindrome (reads the same forwards and backwards).
Test Cases5 test cases
Test Cases:
Showing 2 of 3 sample test casesTest Case 1
Input:
{
"n": 131
}Expected Output:
true
Test Case 2
Input:
{
"n": 17
}Expected Output:
false
+1 more sample test cases (will be validated when you run code)
Sign in to save your progress and mark problems as solved.
Code Editor
Loading editor...
Problem discussion
(0)Join the discussion — login to comment and help other developers.
Login to comment