OFFSET
1,1
COMMENTS
A generalization of primes displayed in A022008.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..200
MATHEMATICA
tm=TimeUsed[]; ta={{0}}; Do[g=n; d1=10; d2=8; d3=10; d4=8; d5=10; s1=Prime[n+1]-Prime[n]; s2=Prime[n+2]-Prime[n+1]; s3=Prime[n+3]-Prime[n+2]; s4=Prime[n+4]-Prime[n+3]; s5=Prime[n+5]-Prime[n+4]; If[Equal[s1, d1]&&Equal[s2, d2]&& Equal[s3, d3]&&Equal[s4, d4]&&Equal[s5, d5], Print[{Prime[n], s1, s2, s3, s4, s5}]; ta=Append[ta, Prime[n]]], {n, 1, 10000000}] {ta=Delete[ta, 1], {d1, d2}} {g, TimeUsed[]-tm}
Transpose[Select[Partition[Prime[Range[650000]], 6, 1], Differences[#]=={10, 8, 10, 8, 10}&]][[1]] (* Harvey P. Dale, Oct 18 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jan 06 2005
EXTENSIONS
Definition corrected by Harvey P. Dale, Oct 18 2013
STATUS
approved