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.

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

This page as a plain text file.
%I A232012 #9 Nov 04 2020 14:01:46
%S A232012 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 A232012 34,36,37,38,39,40,42,43,44,46,48,49,50,52,54,55,57,58,60,62,63,64,66,
%U A232012 67,69,70,72,74,75,76,78,79,80,82,84,85,88,90,92,93,94,96,97,98,99,100
%N A232012 Numbers n such that p^2 + n is prime for some prime p.
%C A232012 Supersequence of A023200 (primes p such that p + 4 is also prime). Complement of A232010.
%e A232012 2 is in sequence because 3^2 + 2 = 11 (3 and 11 are primes).
%t A232012 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 A232012 Cf. A232009, A232010, A232011, A023200.
%K A232012 nonn
%O A232012 1,2
%A A232012 _Jaroslav Krizek_, Nov 22 2013