login
Primes congruent to 13 mod 59.
3

%I #13 Sep 08 2022 08:45:37

%S 13,131,367,839,1193,1429,1783,1901,2137,2609,2963,3671,3907,4261,

%T 4733,4969,5087,5323,5441,6857,7211,7919,8273,8627,8863,9689,10987,

%U 11813,12049,12757,13229,14173,16061,16651,17123,17359,17477,17713,18539,19483,20663

%N Primes congruent to 13 mod 59.

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

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

%t Select[Range[13, 30000, 118], PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Jul 15 2011 *)

%t Select[Prime[Range[2500]], MemberQ[{13}, Mod[#, 59]] &] (* _Vincenzo Librandi_, Sep 02 2012 *)

%o (Magma) [p: p in PrimesUpTo(21000) | p mod 59 eq 13 ]; // _Vincenzo Librandi_, Sep 02 2012

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

%Y Cf. A000040, A142734, A142736, A142738.

%K nonn,easy

%O 1,1

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