Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #12 Mar 22 2023 08:15:10
%S 3,7,11,13,17,29,31,41,43,53,59,67,71,73,83,97,101,109,113,127,137,
%T 139,151,157,167,179,181,193,197,199,211,223,227,239,241,251,263,269,
%U 277,281,283,293,307,311,337,347
%N Primes congruent to {0, 1, 3, 4, 6} mod 7.
%H Vincenzo Librandi, <a href="/A045417/b045417.txt">Table of n, a(n) for n = 1..1000</a>
%t Select[Prime[Range[200]],MemberQ[{0,1,3,4,6},Mod[#,7]]&] (* _Vincenzo Librandi_, Aug 12 2012 *)
%t Select[Flatten[#+{0,1,3,4,6}&/@(7Range[0,50])],PrimeQ] (* _Harvey P. Dale_, Mar 22 2023 *)
%o (Magma) [ p: p in PrimesUpTo(500) | p mod 7 in {0, 1, 3, 4, 6} ]; // _Vincenzo Librandi_, Aug 12 2012
%Y Cf. A000040.
%K nonn,easy
%O 1,1
%A _N. J. A. Sloane_