OFFSET
1,1
COMMENTS
Primes prime(k) such that A046933(k) is composite. - Robert Israel, Jan 08 2025
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 139 is the first prime separated from the next prime (149) by a composite number (9) of successive composites, namely, 140, 141, 142, 143, 144, 145, 146, 147, 148.
MAPLE
P:= select(isprime, [seq(i, i=3..3000, 2)]):
G:= P[2..-1]-P[1..-2]-~1:
J:= remove(t -> G[t]=1 or G[t]::prime, [$1..nops(G)]):
P[J]; # Robert Israel, Jan 08 2025
MATHEMATICA
ps = Prime[Range[500]]; pos = Position[Differences[ps] - 1, _?(# > 1 && ! PrimeQ[#] &)]; ps[[Flatten[pos]]] (* T. D. Noe, Mar 21 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Mar 21 2012
STATUS
approved
