%I #20 May 25 2024 13:43:42
%S 3,5,11,13,17,19,29,31,41,43,47,53,59,61,67,71,73,83,89,97,101,103,
%T 109,113,127,131,137,139,151,157,167,173,179,181,193,197,199,211,223,
%U 227,229,239,241,251,257,263,269
%N Primes congruent to {1, 3, 4, 5, 6} mod 7.
%H Vincenzo Librandi, <a href="/A045402/b045402.txt">Table of n, a(n) for n = 1..1000</a>
%t Select[Prime[Range[0,60]],MemberQ[{1,3,4,5,6},Mod[#,7]]&]//Quiet (* _Harvey P. Dale_, Feb 19 2011 *)
%o (Magma) [ p: p in PrimesUpTo(740) | p mod 7 in {1, 3, 4, 5, 6} ]; // _Vincenzo Librandi_, Mar 24 2011
%Y Cf. A000040.
%K nonn,easy
%O 1,1
%A _N. J. A. Sloane_