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 A099349 #26 Sep 08 2022 08:45:15 %S A099349 5,7,13,19,29,67,97,113,229,293,307,401,409,439,613,643,659,709,739, %T A099349 809,829,859,937,1039,1051,1327,1483,1663,1693,1879,1999,2039,2113, %U A099349 2129,2239,2251,2549,2633,2707,2749,2753,2819,3041,3089,3137,3221,3271,3329 %N A099349 Primes p such that p + nextprime(p) is the arithmetic mean of a pair of twin primes. %C A099349 This sequence (obviously) uses the "strictly larger" variant 2 (A151800) of the nextprime() function, rather than A007918. - _M. F. Hasler_, Sep 09 2015 %H A099349 Amiram Eldar, <a href="/A099349/b099349.txt">Table of n, a(n) for n = 1..10000</a> %e A099349 19 is a term since 19 + 23 = 42 is the sum of consecutive primes and also arithmetic mean of the twin primes 41 and 43. %t A099349 okQ[p_] := Module[{s = p + NextPrime[p]}, PrimeQ[s - 1] && PrimeQ[s + 1]]; Select[Prime[Range[1000]], okQ] (* _Zak Seidov_, Apr 10 2011 *) %o A099349 (Magma) [n: n in PrimesUpTo(3330) | IsPrime(n+NextPrime(n)-1) and IsPrime(n+NextPrime(n)+1)]; // _Bruno Berselli_, Apr 10 2011 %o A099349 (PARI) is(n)=if(isprime(n),n+=nextprime(n+1); isprime(n-1) && isprime(n+1), 0) \\ _Charles R Greathouse IV_, Jul 01 2013 %Y A099349 Cf. A151800, A007918. %K A099349 nonn,easy %O A099349 1,1 %A A099349 _Labos Elemer_, Nov 17 2004 %E A099349 Corrected and edited by _Zak Seidov_, Apr 10 2011