Available question text
Find the smallest integer >= n that is both prime and a decimal palindrome. The challenge is to do this efficiently for n up to 1e8 (answer guaranteed ≤ 2·10^8), typically by generating palindromes and performing primality checks rather than brute-force testing every number.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 866. Prime Palindrome
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source