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 A074982 #9 Mar 14 2018 15:34:12 %S A074982 113,199,317,467,829,863,887,1129,1307,1327,1637,1669,1879,1951,2089, %T A074982 2251,2311,2477,2557,2803,2971,3229,3259,3271,3373,3469,3739,3947, %U A074982 4027,4139,4297,4463,4523,4733,5023,5119,5237,5351,5449,5483,5531,5591,5659 %N A074982 Primes for which the three closest primes are smaller. %H A074982 Harvey P. Dale, <a href="/A074982/b074982.txt">Table of n, a(n) for n = 1..1000</a> %e A074982 The three closest primes to 113 are 109 (difference = 4), 107 (difference = 6) and 103 (difference = 10). 109, 107 and 103 are all smaller than 113, so 113 is in the list. %t A074982 NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; ps = {0, 0, 0, 0, 1}; Do[ps = Drop[ps, 1]; ps = Append[ps, NextPrim[ ps[[ -1]]]]; If[ ps[[ -1]] - ps[[ -2]] > ps[[ -2]] - ps[[1]], Print[ ps[[ -2]]]], {n, 1, 756}] %t A074982 Select[Partition[Prime[Range[800]],5,1],#[[4]]-#[[1]]<#[[5]]-#[[4]]&][[All,4]] (* _Harvey P. Dale_, Mar 14 2018 *) %Y A074982 Cf. A001223, A074979, A075030, A075037, A075038, A075043, A075050 and A075051. %K A074982 nonn %O A074982 1,1 %A A074982 _Neil Fernandez_, Oct 10 2002 %E A074982 Edited by _Robert G. Wilson v_, Oct 11 2002