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.

A065122 a(1) = 2; a(n) is smallest prime > 10*a(n-1).

Original entry on oeis.org

2, 23, 233, 2333, 23333, 233341, 2333459, 23334601, 233346041, 2333460413, 23334604169, 233346041759, 2333460417637, 23334604176379, 233346041763823, 2333460417638239, 23334604176382489, 233346041763824911
Offset: 1

Views

Author

Henry Bottomley, Nov 13 2001

Keywords

Crossrefs

Programs

  • Mathematica
    NextPrim[n_Integer] := Block[ {k = n + 1}, While[ !PrimeQ[k], k++ ]; Return[k]]; a[1] = 2; a[n_] := NextPrim[ 10*a[n - 1]]; Table[ a[n], {n, 1, 20} ]
    NestList[NextPrime[10#]&,2,20] (* Harvey P. Dale, Jun 03 2012 *)
  • PARI
    { for (n=1, 100, if (n>1, a=nextprime(10*a), a=2); write("b065122.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 10 2009

Extensions

More terms from Robert G. Wilson v, Nov 28 2001