login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A266163 Primes prime(k) such that (prime(k)*prime(k+1)+1)/2 is prime. 1

%I #19 Sep 08 2022 08:46:15

%S 467,2179,2777,4877,6151,6173,6871,7907,7937,8329,9791,11261,11287,

%T 12119,12227,12941,13009,14657,14831,15061,15607,16127,16193,16453,

%U 16787,16831,17989,18701,18803,18947,19507,20483,20521,20627,22291,22397,22409,22877,23497

%N Primes prime(k) such that (prime(k)*prime(k+1)+1)/2 is prime.

%C 22397 and 22409 are first consecutive primes in this sequence. - _Altug Alkan_, Dec 22 2015

%C The next consecutive primes in this sequence are 134093 and 134129, 405541 and 405553, 432073 and 432097, 480803 and 480827, 586213 and 586237, ... - _Harvey P. Dale_, Dec 25 2015

%H Robert Israel, <a href="/A266163/b266163.txt">Table of n, a(n) for n = 1..10000</a>

%p lastp:= 3:

%p count:= 0:

%p while count < 100 do

%p p:= nextprime(lastp);

%p if isprime((lastp*p+1)/2) then

%p count:= count+1;

%p A[count]:= lastp;

%p fi;

%p lastp:= p;

%p od:

%p seq(A[i],i=1..100);

%t Prime@ Select[Range@ 2620, PrimeQ[(Prime@ # Prime[# + 1] + 1)/2] &] (* _Michael De Vlieger_, Dec 22 2015 *)

%t Transpose[Select[Partition[Prime[Range[50000]],2,1],PrimeQ[ (Times@@#+1)/2]&]] [[1]] (* _Harvey P. Dale_, Dec 25 2015 *)

%o (PARI) lista(nn) = {forprime(p=3, nn, if(ispseudoprime((p*nextprime(p+1)+1)/2), print1(p, ", ")));} \\ _Altug Alkan_, Dec 22 2015

%o (Magma) [p: p in PrimesInInterval(3,3*10^4) | IsPrime((p*NextPrime(p+1)+1) div 2)]; // _Vincenzo Librandi_, Dec 23 2015

%Y Cf. A023524.

%K nonn

%O 1,1

%A _Robert Israel_, Dec 22 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 18:13 EDT 2024. Contains 371781 sequences. (Running on oeis4.)