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 A134735 #13 Oct 01 2021 18:19:52 %S A134735 2,1,3,2,5,2,7,4,11,2,13,4,17,2,19,4,23,6,29,2,31,6,37,4,41,2,43,4,47, %T A134735 6,53,6,59,2,61,6,67,4,71,2,73,6,79,4,83,6,89,8,97,4,101,2,103,4,107, %U A134735 2,109,4,113,14,127,4,131,6,137,2 %N A134735 Primes followed by the difference from the next prime. %H A134735 Reinhard Zumkeller, <a href="/A134735/b134735.txt">Table of n, a(n) for n = 1..10000</a> %H A134735 Omar E. Pol, <a href="http://www.polprimos.com">Determinacion geometrica de los numeros primos y perfectos</a>. %F A134735 If n is odd then a(n) = A000040((n+1)/2) else a(n) = A001223(n/2). %t A134735 With[{pr=Prime[Range[40]]},Riffle[pr,Differences[pr]]] (* _Harvey P. Dale_, Jul 17 2020 *) %o A134735 (Haskell) %o A134735 import Data.List (transpose) %o A134735 a134735 n = a134735_list !! (n-1) %o A134735 a134735_list = concat $ transpose [a000040_list, a001223_list] %o A134735 -- _Reinhard Zumkeller_, Dec 12 2012 %Y A134735 Prime numbers: A000040. Differences between consecutive primes: A001223. %Y A134735 Cf. A219606. %K A134735 easy,nonn %O A134735 1,1 %A A134735 _Omar E. Pol_, Nov 11 2007