OFFSET
1,1
COMMENTS
It appears that if concat(p,reverse(p))+2 is prime, then concat(p,reverse(p))-2 is not and vice versa. This was tested for the first 60000 primes.
Conjecture: All these primes are of the form 6*k + 1. - Davide Rotondo, Apr 29 2025
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
109 is a term because (i) 109 is prime and (ii) when 109 is concatenated with its reverse (901) + 2, the result (109903) is prime.
MAPLE
filter:= proc(n) local L, d, i, x;
if not isprime(n) then return false fi;
L:= convert(n, base, 10);
d:= nops(L);
x:= add(L[-i]*(10^(i-1)+10^(2*d-i)), i=1..d)+2;
isprime(x)
end proc;
select(filter, [seq(i, i=7 .. 10^4, 6)]); # Robert Israel, Apr 29 2025
MATHEMATICA
crpQ[n_]:=Module[{idn=IntegerDigits[n]}, PrimeQ[FromDigits[ Join[ idn, Reverse[ idn]]]+2]]; Select[Prime[Range[1000]], crpQ] (* Harvey P. Dale, Apr 28 2014 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Chuck Seggelin, Oct 21 2003
STATUS
approved
