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.

A065580 Smallest prime ending in exactly n 3's.

Original entry on oeis.org

3, 233, 2333, 23333, 733333, 10333333, 83333333, 1033333333, 17333333333, 23333333333, 2633333333333, 10333333333333, 53333333333333, 3233333333333333, 1333333333333333, 23333333333333333, 2033333333333333333, 10333333333333333333, 173333333333333333333, 1733333333333333333333
Offset: 1

Views

Author

Robert G. Wilson v, Nov 28 2001

Keywords

Crossrefs

Programs

  • Mathematica
    Do[a = Table[3, {n} ]; k = 0; While[ b = FromDigits[ Join[ IntegerDigits[k], a]]; Mod[k, 10] == 3 || !PrimeQ[b], k++ ]; Print[b], {n, 1, 17} ]
  • PARI
    a(n)={ my(t=10^n, b=(t-1)/3, d=0); while (!isprime(b + t*d), d++; if(d%10==3, d++)); b + t*d } \\ Harry J. Smith, Oct 23 2009