login
Primes congruent to {3, 5} mod 6.
8

%I #21 Sep 08 2022 08:44:56

%S 3,5,11,17,23,29,41,47,53,59,71,83,89,101,107,113,131,137,149,167,173,

%T 179,191,197,227,233,239,251,257,263,269,281,293,311,317,347,353,359,

%U 383,389,401,419,431,443,449,461,467,479,491,503,509,521,557,563,569

%N Primes congruent to {3, 5} mod 6.

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

%t Select[Prime[Range[200]],MemberQ[{3, 5},Mod[#,6]]&] (* _Vincenzo Librandi_, Aug 12 2012 *)

%o (Magma) [ p: p in PrimesUpTo(600) | p mod 6 in {3,5} ]; // _Vincenzo Librandi_, Aug 12 2012

%o (PARI) is(n)=(n%6==5 && isprime(n)) || n==3 \\ _Charles R Greathouse IV_, Jul 20 2015

%Y Essentially the same as A007528.

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_

%E Extended by _Charles R Greathouse IV_, Mar 19 2010