OFFSET
1,1
COMMENTS
Except for the first terms, largest prime p is at least < two numbers congruent (2,4) mod 6.
EXAMPLE
7 is in the sequence because 7 is the largest prime < 8 which is a number congruent (2,4) mod 6.
MATHEMATICA
pp[n_] := Block[{k = n}, While[ ! PrimeQ[k], k-- ]; k]; Union[pp /@ Select[Range[400], MemberQ[{2, 4}, Mod[ #, 6]] &]] (* Ray Chandler, Oct 17 2006 *)
Union[Abs[NextPrime[#, -1]&/@Select[Range[400], MemberQ[{2, 4}, Mod[ #, 6]]&]]] Harvey P. Dale, May 17 2012
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, May 05 2005
EXTENSIONS
Extended by Ray Chandler, Oct 17 2006
STATUS
approved