login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Places n for which A001359(n) and A023200(n) is a twin prime pair.
1

%I #12 Jul 22 2017 09:16:06

%S 2,3,4,6,14,16,29,356,358,359,403,446,464,485,652,655,764,861,866,

%T 1123,1301,1304,1324,1328,1358,1486,1610,2631,2632,3735,3931,3953,

%U 3956,3957,4679,4855,4931,5222,5226,5269,5283,5292,5403,5427,5445

%N Places n for which A001359(n) and A023200(n) is a twin prime pair.

%H Michel Marcus, <a href="/A174046/b174046.txt">Table of n, a(n) for n = 1..149</a>

%e 2 is in the sequence because A001359(2)=5 and A023200(2)=7 are twin primes.

%o (PARI) lista(nn) = {vp = primes(nn); va = select(x->isprime(x+2), vp); vb = select(x->isprime(x+4), vp); for (n=1, min(#va, #vb), if (vb[n] == va[n]+2, print1(n, ", ")););} \\ _Michel Marcus_, Jul 22 2017

%Y Cf. A023200, A001359, A046132, A006512, A174042

%K nonn

%O 1,1

%A _Vladimir Shevelev_, Mar 06 2010

%E Terms beyond 29 from _R. J. Mathar_, Nov 03 2011

%E Edited by _Michel Marcus_, Jul 22 2017