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!)
A054266 Sum of composite numbers between prime p and nextprime(p) is palindromic. 5
3, 5, 109, 193, 281, 509, 661, 827, 857, 1439, 2111, 3433, 3889, 3967, 4549, 6661, 7001, 8467, 10099, 17203, 18583, 21011, 21611, 23831, 24847, 25117, 26261, 26497, 26861, 28181, 29587, 30497, 31307, 47569, 47869, 49789, 53939, 54139, 66361 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (n = 1..500 from Zak Seidov)
P. De Geest, World!Of Numbers
EXAMPLE
a(4)=193 since between 193 and next prime 197 we get the palindromic sum 194 + 195 + 196 = 585.
MATHEMATICA
okQ[l_]:=Module[{x=IntegerDigits[Total[Range[First[l]+1, Last[l]-1]]]}, x==Reverse[x]]; Transpose[Select[Partition[ Prime[Range[2, 6700]], 2, 1], okQ]][[1]] (* Harvey P. Dale, Mar 18 2011 *)
CROSSREFS
Sequence in context: A130187 A289488 A361092 * A054268 A153137 A105526
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Apr 15 2000
EXTENSIONS
Corrected and extended b-file by Chai Wah Wu, Feb 25 2018
STATUS
approved

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 19 04:12 EDT 2024. Contains 371782 sequences. (Running on oeis4.)