login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A030464
Primes that are the concatenation of two consecutive palindromic primes.
1
23, 3151332323, 3242333533, 3727337573, 3757338083, 7888779397, 11202111123211, 11232111126211, 11606111163611, 11787111180811, 12626211268621, 12737211276721, 13111311317131, 13353311338331
OFFSET
1,1
LINKS
MAPLE
digrev:= proc(n) local L, i;
L:= convert(n, base, 10);
add(L[-i]*10^(i-1), i=1..nops(L))
end proc:
dcat:= proc(x, y) 10^(1+ilog10(y))*x+y end proc:
R:= 23: count:= 1: lastpp:= 3:
for d from 2 while count < 100 do
for i in [1, 3, 7, 9] while count < 100 do
for m from i*10^(d-1)+1 to (i+1)*10^(d-1)-1 while count < 100 do
for j from 0 to 9 while count < 100 do
x:= m*10^(d+1)+j*10^d+digrev(m);
if isprime(x) then
y:= dcat(lastpp, x);
lastpp:= x;
if isprime(y) then R:= R, y; count:= count+1 fi
fi
od od od od:
R; # Robert Israel, Apr 01 2021
MATHEMATICA
Select[FromDigits[Flatten[IntegerDigits/@#]]&/@Partition[Select[Prime[Range[ 110000]], PalindromeQ], 2, 1], PrimeQ] (* Harvey P. Dale, Mar 31 2023 *)
CROSSREFS
Cf. A002385.
Sequence in context: A087527 A013906 A214360 * A180731 A053558 A140793
KEYWORD
nonn,base
EXTENSIONS
Edited by Charles R Greathouse IV, Apr 28 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 20 17:28 EDT 2024. Contains 376075 sequences. (Running on oeis4.)