login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Primes congruent to {1, 2, 4, 5} mod 7.
1

%I #11 Sep 08 2022 08:44:55

%S 2,5,11,19,23,29,37,43,47,53,61,67,71,79,89,103,107,109,113,127,131,

%T 137,149,151,163,173,179,191,193,197,211,229,233,239,257,263,271,277,

%U 281,313,317,331,337,347,359,373

%N Primes congruent to {1, 2, 4, 5} mod 7.

%H Vincenzo Librandi, <a href="/A045362/b045362.txt">Table of n, a(n) for n = 1..1000</a>

%t Select[Prime[Range[300]],MemberQ[{1, 2,4,5},Mod[#,7]]&] (* _Vincenzo Librandi_, Aug 10 2012 *)

%o (Magma) [p: p in PrimesUpTo(600) | p mod 7 in [1, 2, 4, 5]]; // _Vincenzo Librandi_, Aug 10 2012

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_