login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A158611 0, 1 and the primes. 27
0, 1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263 (list; graph; refs; listen; history; internal format)
OFFSET

1,3

COMMENTS

Essentially a duplicate of A008578. - N. J. A. Sloane, Mar 27 2009

Or, nonnegative non-composite numbers. [From Juri-Stepan Gerasimov (2stepan(AT)rambler.ru), Nov 22 2009, Dec 12 2009]

FORMULA

a(n) = A008578(n-1), n>1.

MATHEMATICA

Join[{0, 1}, Table[Prime[n], {n, 400}]] (* From Vladimir Joseph Stephan Orlovsky, Feb 04 2012 *)

PROG

(PARI) a(n)=if(n<3, n-1, prime(n-2)) \\ Charles R Greathouse IV, Aug 26 2011

CROSSREFS

A158611 U A002808 = A141468 U A000040 = A001477. - Juri-Stepan Gerasimov (2stepan(AT)rambler.ru), Sep 27 2009

Cf. A008578.

Sequence in context: A052424 A055398 A070159 * A182986 A000040 A008578

Adjacent sequences:  A158608 A158609 A158610 * A158612 A158613 A158614

KEYWORD

nonn,easy,changed

AUTHOR

Jaroslav Krizek (jaroslav.krizek(AT)atlas.cz), Mar 22 2009

EXTENSIONS

Edited by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 21 2009

Further edited by R. J. Mathar, Klaus Brockhaus and N. J. A. Sloane, Sep 13 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 14:37 EST 2012. Contains 205930 sequences.