OFFSET
1,1
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime[Range[700000]], AllTrue[{(#+1)/2, (#+2)/3, (#+3)/4, (#+4)/5}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Apr 05 2017 *)
PROG
(PARI) {my(p=1); until(, isprime(p+=120) || next; for( j=2, 5, isprime(p\j+1) || next(2)); print1(p", "))}
(PARI) forprime(p=2, 1e7, if(p%120==1&&isprime((p+1)/2)&&isprime((p+2)/3)&& isprime((p+3)/4)&&isprime((p+4)/5), print1(p", "))) \\ Charles R Greathouse IV, Feb 26 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Feb 26 2012
STATUS
approved