This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A054690 #8 Jul 29 2018 13:56:42 %S A054690 7,19,43,73,73,349,349,349,349,349,349,661,661,661,661,661,661,661, %T A054690 661,8629,8629,8629,8629,13399,13399,13399,14629,14629,24421,24421, %U A054690 24421,24421,24421,24421,24421,24421,24421,24421,24421,24421,24421 %N A054690 n consecutive primes differ by 4 or more starting at a(n), or n consecutive primes with no twin primes. %H A054690 Robert Israel, <a href="/A054690/b054690.txt">Table of n, a(n) for n = 2..204</a> %p A054690 P:= select(isprime, [seq(i,i=3..10^7,2)]): %p A054690 A:= 'A': %p A054690 state:= 0: smax := 0: %p A054690 for i from 2 to nops(P) do %p A054690 if P[i] - P[i-1] >= 4 then %p A054690 state:= state + 1; %p A054690 if state > smax then smax:= state; A[state+1]:= P[i-state] fi %p A054690 else %p A054690 state:= 0; %p A054690 fi %p A054690 od: %p A054690 seq(A[i],i=2..smax+1); # _Robert Israel_, Jun 27 2017 %t A054690 Prime[#]&/@With[{pd=If[#>2,1,0]&/@Differences[Prime[Range[3000]]]}, Flatten[ Table[ SequencePosition[pd,PadRight[{},n,1],1][[All,1]],{n,45}]]] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Jul 29 2018 *) %Y A054690 Cf. A054691, A054692. %K A054690 nonn %O A054690 2,1 %A A054690 _Jeff Burch_, Apr 19 2000