cp's OEIS Frontend

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.

A152388 Primes p such that (p-n)/(n+1) and (n+1)*p+n are both prime, with n=127.

This page as a plain text file.
%I A152388 #6 Apr 30 2023 17:05:42
%S A152388 6143,11519,23039,205823,253439,345599,417023,463103,752639,1071359,
%T A152388 1474559,1511423,1753343,1766399,1903103,2188799,2271743,2711039,
%U A152388 2741759,2747903,2813183,2997503,3032063,3258623,3371519,3463679
%N A152388 Primes p such that (p-n)/(n+1) and (n+1)*p+n are both prime, with n=127.
%C A152388 This is the general form : (p-n)/(n+1)=primeand(n+1)*p+n=prime; 'Safe' primes and'Sophie Germain' primes just one part of this general form; If n=1 then we got'Safe' primes and'Sophie Germain' primes.
%t A152388 lst={};n=127;Do[p=Prime[k];If[PrimeQ[(p-n)/(n+1)]&&PrimeQ[(n+1)*p+n],AppendTo[lst,p]],{k,2*9!}];lst
%t A152388 Select[Prime[Range[250000]],AllTrue[{(#-127)/128,128#+127},PrimeQ]&] (* _Harvey P. Dale_, Apr 30 2023 *)
%Y A152388 Cf. A152292, A152293, A152294, A152295
%K A152388 nonn
%O A152388 1,1
%A A152388 _Vladimir Joseph Stephan Orlovsky_, Dec 02 2008
%E A152388 Definition clarified by _Harvey P. Dale_, Apr 30 2023