The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A156037 Largest nonprime < n-th prime. 2
1, 1, 4, 6, 10, 12, 16, 18, 22, 28, 30, 36, 40, 42, 46, 52, 58, 60, 66, 70, 72, 78, 82, 88, 96, 100, 102, 106, 108, 112, 126, 130, 136, 138, 148, 150, 156, 162, 166, 172, 178, 180, 190, 192, 196, 198, 210, 222, 226, 228, 232, 238, 240, 250, 256, 262, 268, 270, 276, 280, 282 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Essentially the same as A006093.
LINKS
EXAMPLE
a(1)=1 (1 < 2); a(2)=1 (1 < 3); a(3)=4 (4 < 5).
MAPLE
A156037 := proc(n) local a; for a from ithprime(n)-1 by -1 do if not isprime(a) then return a ; end if; end do: end proc: seq(A156037(n), n=1..80) ; # R. J. Mathar, Oct 30 2009
MATHEMATICA
Join[{1, 1}, Prime@Range[3, 65] - 1] (* Harvey P. Dale, Jan 23 2011 *)
PROG
(Magma) [1, 1] cat [ p-1: p in PrimesInInterval(4, 300)]; // Marius A. Burtea, May 06 2019
CROSSREFS
Sequence in context: A353465 A310578 A165972 * A089079 A310579 A242877
KEYWORD
nonn
AUTHOR
EXTENSIONS
166 inserted by R. J. Mathar, Oct 31 2009
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 May 16 15:04 EDT 2024. Contains 372554 sequences. (Running on oeis4.)