OFFSET
1,1
COMMENTS
The first digit is always smaller than last digit.
MATHEMATICA
Select[Range[20000], And @@ PrimeQ[{#, IntegerReverse[#]}] && ! PalindromeQ[#] && First[(d = IntegerDigits[#])] < Last[d] && PalindromeQ[Most@ Rest@ IntegerDigits[#]] &] (* Amiram Eldar, Oct 16 2021 *)
PROG
(PARI) isok(p) = my(dp=digits(p), dr=Vecrev(dp), r=fromdigits(dr)); if (isprime(r) && (r>p) && isprime(p), sum(i=2, #dp-1, dp[i]==dr[i]) == #dp-2); \\ Michel Marcus, Oct 16 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Lekraj Beedassy, Oct 13 2015
EXTENSIONS
Missing 179 added by Zak Seidov, Oct 15 2021
STATUS
approved
