The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A232012 Numbers n such that p^2 + n is prime for some prime p. 4

%I #9 Nov 04 2020 14:01:46

%S 1,2,3,4,6,7,8,9,10,12,13,14,15,16,18,19,20,22,24,25,27,28,30,32,33,

%T 34,36,37,38,39,40,42,43,44,46,48,49,50,52,54,55,57,58,60,62,63,64,66,

%U 67,69,70,72,74,75,76,78,79,80,82,84,85,88,90,92,93,94,96,97,98,99,100

%N Numbers n such that p^2 + n is prime for some prime p.

%C Supersequence of A023200 (primes p such that p + 4 is also prime). Complement of A232010.

%e 2 is in sequence because 3^2 + 2 = 11 (3 and 11 are primes).

%t Module[{nn=50,prs},prs=Prime[Range[nn]]^2;Select[Range[ 100],AnyTrue[ prs+#,PrimeQ]&]] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Nov 04 2020 *)

%Y Cf. A232009, A232010, A232011, A023200.

%K nonn

%O 1,2

%A _Jaroslav Krizek_, Nov 22 2013

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 May 20 05:07 EDT 2024. Contains 372703 sequences. (Running on oeis4.)