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.

A007810 Largest prime with n distinct decimal digits.

Original entry on oeis.org

7, 97, 983, 9871, 98731, 987631, 9876413, 98765431, 987654103
Offset: 1

Views

Author

N. B. Backhouse (sx52(AT)liverpool.ac.uk)

Keywords

Comments

Differs from A071361 from a(7) on. - M. F. Hasler, May 03 2017

References

  • J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 9871, p.194, Ellipses, Paris 2008.

Crossrefs

Programs

  • Mathematica
    Table[Module[{k=NextPrime[10^n-1,-1]},While[Max[DigitCount[k]]>1, k = NextPrime[ k,-1]];k],{n,9}] (* Harvey P. Dale, Sep 16 2019 *)
  • PARI
    A007810(n,p=sum(k=1,n,(9+k-n)*10^k)/10)={until(#Set(digits(p--))==n&&isprime(p),);p} \\ M. F. Hasler, May 03 2017