OFFSET
1,1
COMMENTS
If we relax the restriction on q, where q is different from p, 2 and 3 fail to be members of this sequence.
Primes p = prime(k) for which A076368(k+1) = p or A076368(k+1) is composite. - Robert Israel, Nov 21 2016
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
89 is in the list because there exists no prime q such that 89 + q - 1 = 97.
MAPLE
N:= 10^4: # to get all terms p for which the next prime <= N
P:= select(isprime, [2, seq(i, i=3..N, 2)]):
G:= P[2..-1]-P[1..-2]:
P[select(t -> G[t]=P[t]-1 or not isprime(G[t]+1), [$1..nops(G)])]; # Robert Israel, Nov 21 2016
MATHEMATICA
t = {}; Do[p = Prime[n]; If[FreeQ[Table[k = p + Prime[i] - 1, {i, n - 1}], Prime[n + 1]], AppendTo[t, p]], {n, 335}]; t
CROSSREFS
KEYWORD
nonn
AUTHOR
Jayanta Basu, Apr 20 2013
STATUS
approved