login
Primes congruent to {0, 2} mod 5.
7

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

%S 2,5,7,17,37,47,67,97,107,127,137,157,167,197,227,257,277,307,317,337,

%T 347,367,397,457,467,487,547,557,577,587,607,617,647,677,727,757,787,

%U 797,827,857,877,887,907,937,947,967,977,997,1087,1097,1117,1187,1217

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

%C Equivalently, primes congruent to {2,5,7} mod 10. [_Bruno Berselli_, Aug 07 2012]

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

%t Select[Prime@Range[210], MemberQ[{0, 2}, Mod[ #, 5]] &] (* _Ray Chandler_, Jun 29 2008 *)

%o (Magma) [ p: p in PrimesUpTo(2000) | p mod 5 in {0, 2} ]; // _Vincenzo Librandi_, Aug 07 2012

%Y Apart from the initial terms essentially same as A030432 and A045380.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_

%E Extended by _Ray Chandler_, Nov 07 2006