OFFSET
1,1
COMMENTS
The smallest in a group of four consecutive primes in A023207. - R. J. Mathar, Jun 02 2011
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MAPLE
isA023207 := proc(n) isprime(n) and isprime(2*n+9) ; end proc:
isA190354 := proc(n) local q, r, s ; if isprime(n) then q := nextprime(n) ; r := nextprime(q) ; s := nextprime(r) ; isA023207(n) and isA023207(q) and isA023207(r) and isA023207(s) ; else return false; end if; end proc:
for i from 1 do p := ithprime(i) ; if isA190354(p) then print(p) ; end if; end do: # R. J. Mathar, Jun 02 2011
MATHEMATICA
p2Q[n_]:=And@@PrimeQ[2#+9&/@n]; Transpose[Select[Partition[Prime[ Range[22000]], 4, 1], p2Q]][[1]] (* Harvey P. Dale, Jun 10 2011 *)
PROG
(PARI) old(p, k)=while(k--, p=precprime(p-1)); p; k=0; forprime(p=2, 1e6, if(isprime(p+p+9), if(k++>3, print1(old(p, 4)", ")), k=0))
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, May 09 2011
STATUS
approved