login
Numbers n such that 2*P(n)+1, 2*P(n+1)+1, 2*P(n+2)-3, 2*P(n+3)+3 are also consecutive primes with P(i)=i-th prime.
2

%I #7 Sep 24 2019 12:16:13

%S 854016,1668928,1670977,2406867,2835695,3212701,3262059,3678424,

%T 4118273,4952356

%N Numbers n such that 2*P(n)+1, 2*P(n+1)+1, 2*P(n+2)-3, 2*P(n+3)+3 are also consecutive primes with P(i)=i-th prime.

%o (PARI) isok(n) = {my(p=2*prime(n)+1, q=2*prime(n+1)+1, r=2*prime(n+2)-3, s=2*prime(n+3)+3); isprime(p) && (nextprime(p+1) == q) && (nextprime(q+1) == r) && (nextprime(r+1) == s);} \\ _Michel Marcus_, Sep 24 2019

%Y Cf. A103911, A103912.

%K nonn,more

%O 1,1

%A _Pierre CAMI_, Feb 21 2005