A105399 Largest prime <= numbers of the form 6k+3 (duplicates removed).
3, 7, 13, 19, 23, 31, 37, 43, 47, 53, 61, 67, 73, 79, 83, 89, 97, 103, 109, 113, 127, 131, 139, 151, 157, 163, 167, 173, 181, 193, 199, 211, 223, 229, 233, 241, 251, 257, 263, 271, 277, 283, 293, 307, 313, 317, 331, 337, 349, 353, 359, 367, 373, 379, 383, 389
Offset: 1
Examples
7 is in the sequence because 7 is the largest prime < 9=6*1+3.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
pp[n_] := Block[{k = n},While[ ! PrimeQ[k], k-- ];k];Union[Table[pp[6n + 3], {n, 0, 65}]] (* Ray Chandler, Oct 17 2006 *) Union[If[PrimeQ[#],#,NextPrime[#,-1]]&/@(6*Range[0,70]+3)] (* Harvey P. Dale, Aug 20 2021 *)
Extensions
Edited, corrected and extended by Ray Chandler, Oct 17 2006
Comments