login
Primes of form 5+38*n^2.
4

%I #18 Sep 08 2022 08:45:50

%S 5,43,157,347,613,1373,1867,2437,3083,4603,5477,6427,9733,10987,13723,

%T 16763,18397,20107,21893,25693,31963,36523,38917,41387,43933,49253,

%U 52027,54877,57803,87557,91243,106747,110813,119173,127837,132283

%N Primes of form 5+38*n^2.

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

%t Select[Table[5 + 38 n^2, {n, 0, 70}], PrimeQ] (* _Harvey P. Dale_, Dec 16 2010 *)

%o (Magma) [a: n in [0..100] | IsPrime(a) where a is 5+38*n^2 ]; // _Vincenzo Librandi_, Jan 02 2014

%Y Cf. A173552, A173553, A173555.

%K nonn

%O 1,1

%A _Vincenzo Librandi_, Feb 21 2010

%E Corrected by _D. S. McNeil_, Dec 10 2010