cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A054266 Sum of composite numbers between prime p and nextprime(p) is palindromic.

Original entry on oeis.org

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
Offset: 1

Views

Author

Patrick De Geest, Apr 15 2000

Keywords

Examples

			a(4)=193 since between 193 and next prime 197 we get the palindromic sum 194 + 195 + 196 = 585.
		

Crossrefs

Programs

  • 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 *)

Extensions

Corrected and extended b-file by Chai Wah Wu, Feb 25 2018