OFFSET
1,1
COMMENTS
Primes p such that the digit-reversal q = A004086(p) is a prime greater than p, and p+q = x*y for some x and y such that x+y and the concatenation x|y are primes.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Carlos Rivera, Puzzle 1036. P + R(p) such that..., The Prime Puzzles and Problems Connection.
EXAMPLE
a(4) = 167 is a term because 167 and 761 are primes with 167 < 761, and 167+761 = 928 = 32*29 with 3229 and 32+29 = 61 prime.
MAPLE
revdigs:= proc(n) local L, i;
L:= convert(n, base, 10);
add(L[-i]*10^(i-1), i=1..nops(L))
end proc:
filter:= proc(p) local q, m, d, e;
q:= revdigs(p); if q <= p then return false fi;
if not isprime(p) or not isprime(q) then return false fi;
m:= p+q;
for d in numtheory:-divisors(m) do
e:= m/d;
if isprime(d*10^(1+ilog10(e))+e) and isprime(d+e) then return true fi
od;
false
end proc:
CROSSREFS
KEYWORD
nonn,base
AUTHOR
J. M. Bergot and Robert Israel, Apr 26 2021
STATUS
approved