login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A045391
Primes congruent to {1, 2} mod 7.
4
2, 23, 29, 37, 43, 71, 79, 107, 113, 127, 149, 163, 191, 197, 211, 233, 239, 281, 317, 331, 337, 359, 373, 379, 401, 421, 443, 449, 457, 463, 491, 499, 541, 547, 569, 617, 631, 653, 659, 673, 701, 709, 743, 751
OFFSET
1,1
LINKS
MATHEMATICA
Select[Prime[Range[300]], MemberQ[{1, 2}, Mod[#, 7]]&] (* Vincenzo Librandi, Aug 10 2012 *)
Select[Flatten[#+{1, 2}&/@(7*Range[0, 120])], PrimeQ] (* Harvey P. Dale, Sep 15 2019 *)
PROG
(Magma) [p: p in PrimesUpTo(1000) | p mod 7 in [1, 2]]; // Vincenzo Librandi, Aug 10 2012
CROSSREFS
KEYWORD
nonn,easy
STATUS
approved