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.

A205667 Numbers containing exactly one prime in decimal representation.

Original entry on oeis.org

2, 3, 5, 7, 11, 12, 15, 19, 20, 21, 22, 24, 26, 28, 30, 33, 34, 36, 38, 39, 41, 42, 45, 50, 51, 54, 55, 56, 58, 61, 62, 63, 65, 70, 74, 76, 77, 78, 82, 85, 87, 89, 92, 93, 95, 101, 102, 105, 109, 110, 111, 114, 116, 118, 120, 121, 122, 124, 126, 128, 141
Offset: 1

Views

Author

Reinhard Zumkeller, Jan 31 2012

Keywords

Comments

A039997(a(n)) = 1.

Examples

			A039997(10) = #{} = 0, therefore 10 is not a term;
A039997(11) = #{11} = 1, therefore 11 is a term;
A039997(12) = #{2} = 1, therefore 12 is a term;
A039997(13) = #{3, 13} = 2, therefore 13 is not a term.
		

Crossrefs

Subsequence of A163753.

Programs

  • Haskell
    a205667 n = a205667_list !! (n-1)
    a205667_list = filter ((== 1) . a039997) [0..]
    -- Reinhard Zumkeller, Jan 31 2012