A042986 Primes congruent to {0, 1, 2, 3} mod 5.
2, 3, 5, 7, 11, 13, 17, 23, 31, 37, 41, 43, 47, 53, 61, 67, 71, 73, 83, 97, 101, 103, 107, 113, 127, 131, 137, 151, 157, 163, 167, 173, 181, 191, 193, 197, 211, 223, 227, 233, 241, 251, 257, 263, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 353, 367, 373, 383
Offset: 1
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Programs
-
Magma
[ p: p in PrimesUpTo(500) | p mod 5 in [0..3] ]; // Vincenzo Librandi, Dec 25 2010
-
Mathematica
Select[Prime[Range[100]],MemberQ[{0,1, 2,3},Mod[#,5]]&] (* Vincenzo Librandi, Aug 09 2012 *)
Comments