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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A242386 Lesser of consecutive primes whose sum is a palindromic number. 2

%I #26 Jan 04 2019 19:00:22

%S 2,3,109,211,347,409,1051,1493,2111,2273,3167,4219,4441,10099,10853,

%T 10903,11353,11909,12823,12973,13421,13831,14543,14639,20551,21011,

%U 21347,21661,21863,22271,23581,23981,30047,30557,31259,31307,31963,32069,32213,32467,32869,33029

%N Lesser of consecutive primes whose sum is a palindromic number.

%H Chai Wah Wu, <a href="/A242386/b242386.txt">Table of n, a(n) for n = 1..10000</a>

%e 2111 is in the sequence because 2111 is prime, nextprime(2111) = 2113 and 2111 + 2113 = 4224, palindromic number.

%o (PARI)

%o palind(n)=Str(n)==concat(Vecrev(Str(n)))

%o {k=2;while(k<10^5,m=nextprime(k+1);if(palind(k+m),print1(k,", "));k=m)}

%Y Cf. A162571 (resulting palindromes), A242387.

%K nonn,base

%O 1,1

%A _Antonio Roldán_, May 12 2014

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 23 12:44 EDT 2024. Contains 371913 sequences. (Running on oeis4.)