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.

A029979 Primes that are palindromic in base 12.

Original entry on oeis.org

2, 3, 5, 7, 11, 13, 157, 181, 193, 229, 241, 277, 761, 773, 797, 809, 821, 857, 1039, 1051, 1063, 1087, 1123, 1607, 1619, 1667, 21169, 21313, 21601, 22621, 23053, 23197, 23629, 23773, 23917, 24061, 24793, 25657, 25801, 26821, 27109, 27253
Offset: 1

Views

Author

Keywords

Programs

  • Mathematica
    f[n_]:=FromDigits[RealDigits[n,12][[1]]]==FromDigits[Reverse[RealDigits[n,12][[1]]]]; lst={}; Do[p=Prime[n]; If[f[p],AppendTo[lst,p]],{n,8!}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 10 2009 *)
    pal12Q[n_]:=Module[{idn=IntegerDigits[n,12]},idn==Reverse[idn]]; Select[ Prime[ Range[3000]],pal12Q] (* Harvey P. Dale, Sep 23 2016 *)