Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A096457
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A096457 If n is prime replace n with the next prime. +0
1
1, 3, 5, 4, 7, 6, 11, 8, 9, 10, 13, 12, 17, 14, 15, 16, 19, 18, 23, 20, 21, 22, 29, 24, 25, 26, 27, 28, 31, 30, 37, 32, 33, 34, 35, 36, 41, 38, 39, 40, 43, 42, 47, 44, 45, 46, 53, 48, 49, 50, 51, 52, 59, 54, 55, 56, 57, 58, 61, 60, 67, 62, 63, 64, 65, 66, 71, 68, 69, 70, 73, 72 (list; graph; listen)
OFFSET

1,2

EXAMPLE

For n = prime 7, nextprime(7+1) = 11 = a(7).

PROGRAM

(PARI) f(n) = for(x=1, n, if(isprime(x), y=nextprime(x+1), y=x); print1(y", "))

CROSSREFS

Sequence in context: A114748 A107431 A023859 this_sequence A082568 A069918 A075380

Adjacent sequences: A096454 A096455 A096456 this_sequence A096458 A096459 A096460

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Aug 11 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research