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 A085637 #14 Mar 21 2025 17:10:23 %S A085637 2,30,72,144,312,336,510,690,990,1122,1254,1272,1410,2082,2376,2508, %T A085637 2586,2664,2802,3060,3096,3180,3432,3510,3684,4062,4506,5526,5790, %U A085637 6174,7224,8064,8388,9078,9390,9504,10698,10794,10884,10992,11046,11334 %N A085637 Numbers k such that k*prime(k) -+ 1 are twin primes. %C A085637 Intersection of A086172 and A086173. See also A086174, A086175, A086176, A086177. %H A085637 Vincenzo Librandi, <a href="/A085637/b085637.txt">Table of n, a(n) for n = 1..1000</a> %e A085637 k=30 is a term because 30*prime(30) +- 1 = 3390 +- 1 are twin primes. %t A085637 Select[Range[15000], PrimeQ[ # Prime[ # ] - 1] && PrimeQ[ # Prime[ # ] + 1] &] %t A085637 Select[Range[12000],AllTrue[#*Prime[#]+{1,-1},PrimeQ]&] (* _Harvey P. Dale_, Mar 21 2025 *) %o A085637 (Magma) [n: n in [1..11500] | IsPrime(n*NthPrime(n) - 1) and IsPrime(n*NthPrime(n) + 1) ]; // _Vincenzo Librandi_, Oct 05 2012 %Y A085637 Cf. A086172, A086173, A086174, A086175, A086176, A086177. %K A085637 easy,nonn %O A085637 1,1 %A A085637 _Zak Seidov_, Jul 11 2003