login
Primes congruent to 23 mod 33.
2

%I #12 Sep 08 2022 08:45:35

%S 23,89,353,419,617,683,881,947,1013,1277,1409,1607,1871,2003,2069,

%T 2267,2333,2399,2531,2663,2729,2861,2927,3191,3257,3323,3389,3719,

%U 3851,3917,4049,4643,4973,5039,5171,5237,5303,5501,5897,6029,6359,6491,6689,7019

%N Primes congruent to 23 mod 33.

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

%F a(n) ~ 20n log n. - _Charles R Greathouse IV_, Jul 02 2016

%t Select[Range[23, 20000, 33], PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Jun 24 2011 *)

%t Select[Prime[Range[3000]],MemberQ[{23},Mod[#,33]]&] (* _Vincenzo Librandi_, Aug 18 2012 *)

%o (Magma) [p: p in PrimesUpTo(8000) | p mod 33 eq 23 ]; // _Vincenzo Librandi_, Aug 18 2012

%o (PARI) is(n)=isprime(n) && n%33==23 \\ _Charles R Greathouse IV_, Jul 02 2016

%Y Cf. A000040.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_, Jul 11 2008