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.

A029977 Primes that are palindromic in base 9.

Original entry on oeis.org

2, 3, 5, 7, 109, 127, 173, 191, 227, 337, 373, 419, 601, 619, 683, 701, 719, 6967, 7129, 7867, 8443, 9181, 9343, 10333, 10657, 11071, 11971, 12547, 13033, 13367, 13691, 14843, 15581, 16319, 16481, 17957, 18119, 18371, 19433, 27067, 27967
Offset: 1

Views

Author

Keywords

Programs

  • Mathematica
    f[n_]:=FromDigits[RealDigits[n,9][[1]]]==FromDigits[Reverse[RealDigits[n,9][[1]]]]; lst={}; Do[p=Prime[n]; If[f[p],AppendTo[lst,p]],{n,8!}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 10 2009 *)