%I #11 Sep 08 2022 08:44:55
%S 2,5,19,23,29,37,43,47,61,71,79,89,103,107,113,127,131,149,163,173,
%T 191,197,211,229,233,239,257,271,281,313,317,331,337,359,373,379,383,
%U 397,401,421,439,443,449,457,463
%N Primes congruent to {1, 2, 5} mod 7.
%H Vincenzo Librandi, <a href="/A045367/b045367.txt">Table of n, a(n) for n = 1..1000</a>
%t Select[Prime[Range[300]],MemberQ[{1,2,5},Mod[#,7]]&] (* _Vincenzo Librandi_, Aug 10 2012 *)
%o (Magma) [p: p in PrimesUpTo(800) | p mod 7 in [1, 2, 5]]; // _Vincenzo Librandi_, Aug 10 2012
%Y Cf. A000040.
%K nonn,easy
%O 1,1
%A _N. J. A. Sloane_
|