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 A045958 #19 Mar 20 2024 05:14:20 %S A045958 2,4,6,10,12,18,22,36,42,52,58,70,100,102,108,130,138,148,150,172,178, %T A045958 196,198,228,262,268,282,310,346,358,372,388,418,420,438,442,490,498, %U A045958 502,522,546,570,586,598,630,642,646,660,690,708,738,742,772,822,826,838,852 %N A045958 Numbers k in A045954 such that k+1 is prime. %H A045958 Amiram Eldar, <a href="/A045958/b045958.txt">Table of n, a(n) for n = 1..10000</a> %t A045958 seq[max_] := Module[{lst = Range[2, max, 2], i = 2, len}, While[i <= (len = Length@lst) && (k = lst[[i]]) <= len, lst = Drop[lst, {k, len, k}]; i++]; Select[lst, PrimeQ[# + 1] &]]; seq[1000] (* _Amiram Eldar_, Mar 20 2024, after _Robert G. Wilson v_ at A045954 *) %Y A045958 Cf. A045954, A045959. %Y A045958 Subsequence of A006093. %K A045958 nonn %O A045958 1,1 %A A045958 _Felice Russo_ %E A045958 Title corrected by _Sean A. Irvine_, Mar 29 2021