login
Primes congruent to 24 mod 25.
2

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

%S 149,199,349,449,499,599,1049,1249,1399,1499,1549,1699,1949,1999,2099,

%T 2399,2549,2699,2749,2999,3049,3299,3449,3499,4049,4099,4349,4549,

%U 4649,4799,4999,5099,5399,5449,5749,5849,6199,6299,6449,6599,6899,6949,7349,7499

%N Primes congruent to 24 mod 25.

%H Vincenzo Librandi, <a href="/A141946/b141946.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[24, 20000, 25], PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Jun 15 2011 *)

%o (Magma) [p: p in PrimesUpTo(8000) | p mod 25 eq 24 ]; // _Vincenzo Librandi_, Aug 16 2012

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

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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