%I #9 Jun 26 2022 23:08:35
%S 2,3,17,23,29,31,37,43,59,71,73,79,101,107,113,127,149,157,163,191,
%T 197,199,211,227,233,239,241,269,281,283,311,317,331,337,353,359,367,
%U 373,379,401,409,421,443,449,457
%N Primes congruent to {1, 2, 3} mod 7.
%H Vincenzo Librandi, <a href="/A045342/b045342.txt">Table of n, a(n) for n = 1..1000</a>
%t Select[Prime[Range[500]],MemberQ[{1,2,3},Mod[#,7]]&] (* _Vincenzo Librandi_, Aug 04 2012 *)
%o (Magma) [p: p in PrimesUpTo(500) | p mod 7 in [1,2,3]]; // _Vincenzo Librandi_, Aug 04 2012
%K nonn,easy
%O 1,1
%A _N. J. A. Sloane_
|