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 A307329 #11 May 13 2024 05:21:39 %S A307329 2,7,106,193,241,286,322,353,411,415,753,858,859,1086,1164,1305,1547, %T A307329 1548,1625,1631,1648,1678,1896,1972,2007,2103,2406,2503,2515,2516, %U A307329 2530,2553,2638,2714,3003,3059,3060,3337,3903,4012,4072,4299,4386,4404,4625,4698 %N A307329 Indices of twin Ulam primes: numbers k such that both u(k) and u(k+1) are primes, where u(k) = A002858(k) are the Ulam numbers. %H A307329 Amiram Eldar, <a href="/A307329/b307329.txt">Table of n, a(n) for n = 1..10000</a> %t A307329 ulams = {1, 2}; Do[AppendTo[ulams, n = Last[ulams]; While[n++; Length[ DeleteCases[Intersection[ulams, n - ulams], n/2, 1, 1]] != 2]; n], {1000}]; p=PrimeQ[ulams]; len=Length[p]; s={}; Do[If[p[[n]]&&p[[n+1]], AppendTo[s,n]], {n,1,len-1}]; s (* after _Jean-François Alcover_ at A002858 *) %Y A307329 Cf. A002858, A068820, A307328. %K A307329 nonn %O A307329 1,1 %A A307329 _Amiram Eldar_, Apr 02 2019