login
Primes congruent to 17 mod 39.
1

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

%S 17,173,251,563,641,719,797,953,1031,1109,1187,1499,1733,1811,1889,

%T 2357,2591,2903,3137,3371,3449,3527,3761,3917,4073,4229,4463,4931,

%U 5009,5087,5399,5477,5711,5867,6101,6257,6491,6569,6803,6959,7193,7349,7583,7817

%N Primes congruent to 17 mod 39.

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

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

%t Select[Prime[Range[3000]],MemberQ[{17},Mod[#,39]]&] (* _Vincenzo Librandi_, Aug 20 2012 *)

%o (Magma) [p: p in PrimesUpTo(9000) | p mod 39 eq 17 ]; // _Vincenzo Librandi_, Aug 20 2012

%o (PARI) is(n)=isprime(n) && n%39==17 \\ _Charles R Greathouse IV_, Jul 03 2016

%Y Cf. A000040.

%K nonn,easy

%O 1,1

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