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.

A290767 Primes p such that p^2 +/- p +/- 1 are all nonprimes.

This page as a plain text file.
%I A290767 #35 Oct 13 2024 19:37:35
%S A290767 23,37,43,73,107,109,113,137,157,179,211,223,227,229,239,251,257,271,
%T A290767 277,283,311,313,317,347,353,367,389,439,443,467,503,509,521,523,547,
%U A290767 557,563,577,587,593,601,631,653,661,719,733,757,797,811,821,823,829,853,859,877,883
%N A290767 Primes p such that p^2 +/- p +/- 1 are all nonprimes.
%H A290767 Harvey P. Dale, <a href="/A290767/b290767.txt">Table of n, a(n) for n = 1..1000</a>
%F A290767 Intersection of the complements of A053184, A053182, A065508, and A091567 within the primes A000040.
%p A290767 select(p -> isprime(p) and not ormap(isprime, [p^2+p+1,p^2+p-1,p^2-p+1,p^2-p-1]), [2,seq(i,i=3..1000,2)]); # _Robert Israel_, Aug 10 2017
%t A290767 Select[Prime[Range[1000]], ! (PrimeQ[#^2 + # + 1] || PrimeQ[#^2 + # - 1] ||PrimeQ[#^2 - # + 1] || PrimeQ[#^2 - # - 1]) &]
%t A290767 Select[Prime[Range[200]],NoneTrue[{#^2+#+1,#^2+#-1,#^2-#+1,#^2-#-1},PrimeQ]&] (* _Harvey P. Dale_, Oct 13 2024 *)
%o A290767 (PARI) is(n) = my(v=[n^2+n+1, n^2+n-1, n^2-n+1, n^2-n-1]); for(k=1, #v, if(ispseudoprime(v[k]), return(0))); 1
%o A290767 forprime(p=1, 900, if(is(p), print1(p, ", "))) \\ _Felix Fröhlich_, Aug 10 2017
%Y A290767 Cf. A000040, A053184, A053182, A065508, A091567, A236056.
%K A290767 nonn
%O A290767 1,1
%A A290767 _Ralf Steiner_, Aug 10 2017