login
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
OFFSET
1,2
LINKS
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
KEYWORD
nonn
AUTHOR
Cino Hilliard, Aug 11 2004
STATUS
approved