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!)
A167428 Smallest non-isolated (or twin) prime > n-th non-isolated nonprime. 1
3, 3, 11, 11, 11, 17, 17, 17, 29, 29, 29, 29, 29, 29, 29, 29, 41, 41, 41, 41, 41, 41, 41, 41, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 71, 71, 71, 71, 71, 71, 71, 71, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(1)=3 (>0); a(2)=3 (>1); a(3)=11 (>8); a(4)=11 (>8); a(5)=11 (>10); a(6)=17 (>14).
MAPLE
A164276 := proc(n) option remember; if n = 1 then 0; else for a from procname(n-1)+1 do if isA164276(a) then return a; end if; end do; end if: end proc:
isA164276 := proc(n) not isprime(n) and ( not isprime(n+1) or not isprime(n-1) ) ; end proc:
isA001097 := proc(n) isprime(n) and ( isprime(n+2) or isprime(n-2) ); end proc:
A167428 := proc(n) for a from A164276(n)+1 do if isA001097(a) then return a; end if; end do: end proc:
seq(A167428(n), n=1..120) ; # R. J. Mathar, May 30 2010
CROSSREFS
Sequence in context: A122167 A095019 A321082 * A318961 A309798 A068594
KEYWORD
nonn
AUTHOR
EXTENSIONS
Entries checked by R. J. Mathar, May 30 2010
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 20 05:07 EDT 2024. Contains 372703 sequences. (Running on oeis4.)