OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
Take n = 185. Then 3*185 + 2 = 557, 4*185 + 3 = 743 and 5*185 + 4 = 929 are primes.
MATHEMATICA
Select[Range[7000], PrimeQ[3# + 2] && PrimeQ[4# + 3] && PrimeQ[5# + 4] &] (* Ray Chandler, Mar 20 2007 *)
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 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot, Mar 19 2007
EXTENSIONS
Corrected and extended by Ray Chandler, Stuart Clary, Robert G. Wilson v and Zak Seidov, Mar 20 2007
STATUS
approved