login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A096458 If n is prime, the next prime after the next prime after n. otherwise n. 1
1, 5, 7, 4, 11, 6, 13, 8, 9, 10, 17, 12, 19, 14, 15, 16, 23, 18, 29, 20, 21, 22, 31, 24, 25, 26, 27, 28, 37, 30, 41, 32, 33, 34, 35, 36, 43, 38, 39, 40, 47, 42, 53, 44, 45, 46, 59, 48, 49, 50, 51, 52, 61, 54, 55, 56, 57, 58, 67, 60, 71, 62, 63, 64, 65, 66, 73, 68, 69, 70, 79, 72 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

MATHEMATICA

Table[If[PrimeQ[n], NextPrime[NextPrime[n]], n], {n, 80}] (* Harvey P. Dale, Nov 16 2011 *)

CROSSREFS

Sequence in context: A232975 A198998 A096437 * A123489 A002338 A324791

Adjacent sequences:  A096455 A096456 A096457 * A096459 A096460 A096461

KEYWORD

nonn

AUTHOR

Cino Hilliard, Aug 11 2004

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 05:38 EDT 2020. Contains 333073 sequences. (Running on oeis4.)