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.

Showing 1-1 of 1 results.

A186700 Next palindrome after n-th prime.

Original entry on oeis.org

3, 4, 6, 8, 22, 22, 22, 22, 33, 33, 33, 44, 44, 44, 55, 55, 66, 66, 77, 77, 77, 88, 88, 99, 99, 111, 111, 111, 111, 121, 131, 141, 141, 141, 151, 161, 161, 171, 171, 181, 181, 191, 202, 202, 202, 202, 212, 232, 232, 232, 242, 242, 242, 252, 262, 272, 272, 272, 282, 282, 292, 303, 313, 313, 323, 323, 333, 343, 353, 353, 363, 363, 373, 383, 383, 393, 393, 404, 404
Offset: 1

Views

Author

Harvey P. Dale, Feb 25 2011

Keywords

Crossrefs

Programs

  • Mathematica
    palQ[n_] := # == Reverse@ # &@ IntegerDigits@ n; Table[k = Prime@ n + 1; While[! palQ@ k, k++]; k, {n, 79}] (* Michael De Vlieger, Nov 05 2015 *)
  • PARI
    a(n) = {p = prime(n)+1; while ((d = digits(p)) && (Vecrev(d)!=d), p++); p;} \\ Michel Marcus, Nov 05 2015
Showing 1-1 of 1 results.