login

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

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

%I #13 Jun 26 2022 23:09:58

%S 2,5,7,11,17,31,37,41,47,61,67,71,97,101,107,127,131,137,151,157,167,

%T 181,191,197,211,227,241,251,257,271,277,281,307,311,317,331,337,347,

%U 367,397,401,421,431,457,461,467

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

%C Beyond the second entry, sequence corresponds to primes ending in 1 or 7. - _Lekraj Beedassy_, Jan 14 2007

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

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

%o (Magma) [p: p in PrimesUpTo(400) | p mod 5 in [0..2]]; // _Vincenzo Librandi_, Aug 10 2012

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_