OFFSET
1,2
COMMENTS
Terms n=2..31 are identical to terms n=1..30 of A079364.
LINKS
K. Stern, Table of n, a(n) for n=1..10000
MAPLE
isA160666 := proc(n) local ppl, pmi ; if isprime(n) then RETURN(false): elif n =0 then RETURN(true): elif n =1 then RETURN(false): fi; ppl := nextprime(n)-n ; pmi := n-prevprime(n) ; RETURN (isprime(min(ppl, pmi)) ) ; end: for n from 0 to 200 do if isA160666(n) then printf("%d, ", n) ; fi; od: # R. J. Mathar, May 25 2009
MATHEMATICA
fQ[n_] := PrimeQ[ Min[ NextPrime[n] - n, n - NextPrime[n, -1]]]; Select[ Range[0, 174], !PrimeQ@ # && fQ@# &] (* Robert G. Wilson v, May 25 2009 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Kyle Stern, May 22 2009
EXTENSIONS
More terms from R. J. Mathar and Robert G. Wilson v, May 25 2009
STATUS
approved