login
Primes congruent to 2 mod 13.
3

%I #21 Mar 10 2023 16:49:30

%S 2,41,67,197,223,353,379,431,457,509,587,613,691,743,769,821,977,1237,

%T 1289,1367,1471,1523,1549,1601,1627,1783,1861,1913,2017,2069,2251,

%U 2381,2459,2693,2719,2797,2927,2953,3083,3109,3187,3343,3499,3733,3863,3889,3967

%N Primes congruent to 2 mod 13.

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

%F {2} UNION A140374. - _R. J. Mathar_, Jul 20 2008

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

%t Select[Range[2, 20000, 13], PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Jun 18 2011 *)

%t Select[Prime[Range[600]],Mod[#,13]==2&] (* _Harvey P. Dale_, Mar 10 2023 *)

%o (Magma) [ p: p in PrimesUpTo(11000) | p mod 13 eq 2 ]; // _Vincenzo Librandi_, Apr 07 2011

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

%K nonn,easy

%O 1,1

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