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 A353136 #18 May 14 2022 11:23:40 %S A353136 53,157,173,251,257,263,337,373,547,557,563,577,587,593,607,653,733, %T A353136 947,977,1039,1103,1123,1181,1187,1223,1367,1627,1747,1753,1907,2017, %U A353136 2063,2287,2417,2677,2719,2897,2903,2963,3307,3313,3517,3547,3637,3733,4013,4211 %N A353136 Primes whose gaps to both neighbor primes are triangular numbers. %H A353136 Alois P. Heinz, <a href="/A353136/b353136.txt">Table of n, a(n) for n = 1..10000</a> %e A353136 Prime 251 is a term, the gap to the previous prime 241 is 10 and the gap to the next prime 257 is 6 and both gaps are triangular numbers. %p A353136 t:= proc(n) option remember; issqr(8*n+1) end: %p A353136 q:= n-> isprime(n) and andmap(t, [n-prevprime(n), nextprime(n)-n]): %p A353136 select(q, [$3..5000])[]; %t A353136 t[n_] := IntegerQ@Sqrt[8n+1]; %t A353136 q[n_] := PrimeQ[n] && t[n-NextPrime[n, -1]] && t[NextPrime[n]-n]; %t A353136 Select[Range[3, 5000], q] (* _Jean-François Alcover_, May 14 2022, after _Alois P. Heinz_ *) %Y A353136 Cf. A000040, A000217, A014494, A353088, A353135, A353137. %K A353136 nonn %O A353136 1,1 %A A353136 _Alois P. Heinz_, Apr 25 2022