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.

A060417 Number of different decimal digits in n-th prime.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 2, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 2, 3, 2, 2, 3, 3, 2, 3, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 2, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3
Offset: 1

Views

Author

Labos Elemer, Apr 05 2001

Keywords

Examples

			The maximum is 10. Thus 1234567891 is a prime with 9 and 123456789011 with 10 different decimal digits.
		

Crossrefs

Programs

  • Haskell
    import Data.List (nub, sort)
    a060417 = length . nub . show . a000040
    -- Reinhard Zumkeller, Apr 08 2012

Formula

Table[Length[Union[IntegerDigits[Prime[w]]]], {w, 1, 1000}]