login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A014683 In the sequence of positive integers add 1 to each prime number. 9
1, 3, 4, 4, 6, 6, 8, 8, 9, 10, 12, 12, 14, 14, 15, 16, 18, 18, 20, 20, 21, 22, 24, 24, 25, 26, 27, 28, 30, 30, 32, 32, 33, 34, 35, 36, 38, 38, 39, 40, 42, 42, 44, 44, 45, 46, 48, 48, 49, 50, 51, 52, 54, 54, 55, 56, 57, 58, 60, 60, 62, 62, 63, 64, 65, 66, 68, 68, 69, 70, 72, 72 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
For n >= 3, a(n) = smallest composite number m such that m - (n-2) is a prime. - Amarnath Murthy and Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Mar 08 2003.
LINKS
FORMULA
a(n) = n + pi(n) - pi(n-1). - Wesley Ivan Hurt, Jun 15 2013
a(n) = n + A010051(n). - Reinhard Zumkeller, Nov 01 2014
MATHEMATICA
Array[If[PrimeQ[#], #+1, #]&, 80] (* Harvey P. Dale, Jul 21 2013 *)
PROG
(PARI) a(n)=n+isprime(n)
(Haskell)
a014683 n = n + a010051' n -- Reinhard Zumkeller, Nov 01 2014
CROSSREFS
Sequence in context: A215250 A354154 A229022 * A213222 A166737 A088847
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Erich Friedman.
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)