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.

A126956 Numbers n such that 3n+2, 4n+3 and 5n+4 are primes.

This page as a plain text file.
%I A126956 #10 Oct 30 2019 17:30:38
%S A126956 5,17,77,89,119,185,257,287,395,665,755,797,929,1175,1259,1337,1379,
%T A126956 1445,1469,1769,2057,2105,3125,3419,3437,3629,3815,3989,4079,4157,
%U A126956 4175,4217,4367,4445,4847,5045,5375,6089,6137,6167,6359,6419,6485,6725,6887
%N A126956 Numbers n such that 3n+2, 4n+3 and 5n+4 are primes.
%H A126956 Harvey P. Dale, <a href="/A126956/b126956.txt">Table of n, a(n) for n = 1..1000</a>
%e A126956 Take n = 185. Then 3*185 + 2 = 557, 4*185 + 3 = 743 and 5*185 + 4 = 929 are primes.
%t A126956 Select[Range[7000], PrimeQ[3# + 2] && PrimeQ[4# + 3] && PrimeQ[5# + 4] &] (* _Ray Chandler_, Mar 20 2007 *)
%t A126956 Select[Range[7000],AllTrue[{3#+2,4#+3,5#+4},PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* _Harvey P. Dale_, Feb 06 2019 *)
%Y A126956 Intersection of A024893, A095278, A024897. Cf. A126955.
%K A126956 nonn
%O A126956 1,1
%A A126956 _J. M. Bergot_, Mar 19 2007
%E A126956 Corrected and extended by _Ray Chandler_, _Stuart Clary_, _Robert G. Wilson v_ and _Zak Seidov_, Mar 20 2007