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.

A210362 Prime numbers p such that x^2 + x + p produces primes for x = 0..3 but not x = 4.

This page as a plain text file.
%I A210362 #10 Nov 17 2024 19:27:46
%S A210362 5,101,227,1091,1481,1487,3917,4127,4787,8231,9461,10331,11777,12107,
%T A210362 14627,16061,20747,25577,27737,29021,32297,33347,35531,35591,36467,
%U A210362 38447,39227,41177,42461,44267,44531,49031,59441,69191,77237,79811,80777,93251,93491
%N A210362 Prime numbers p such that x^2 + x + p produces primes for x = 0..3 but not x = 4.
%C A210362 The first term is A164926(4).
%H A210362 T. D. Noe, <a href="/A210362/b210362.txt">Table of n, a(n) for n = 1..1000</a>
%t A210362 lookfor = 4; t = {}; n = 0; While[Length[t] < 50, n++; c = Prime[n]; i = 1; While[PrimeQ[i^2 + i + c], i++]; If[i == lookfor, AppendTo[t, c]]]; t
%t A210362 Select[Prime[Range[10000]],AllTrue[#+{2,6,12},PrimeQ]&&!PrimeQ[#+20]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* _Harvey P. Dale_, Mar 26 2015 *)
%t A210362 Select[Prime[Range[10000]],Boole[PrimeQ[#+{2,6,12,20}]]=={1,1,1,0}&] (* _Harvey P. Dale_, Nov 17 2024 *)
%Y A210362 Cf. A067774, A164926, A210360, A210361, A210363, A210364, A210365.
%K A210362 nonn
%O A210362 1,1
%A A210362 _T. D. Noe_, Apr 05 2012