A243451 Primes of the form n^2 + 16.
17, 41, 97, 137, 241, 457, 641, 857, 977, 1697, 2417, 2617, 3041, 4241, 5641, 6257, 6577, 7937, 8297, 9041, 9817, 11897, 13241, 14177, 14657, 15641, 16657, 22817, 27241, 32057, 36497, 44537, 47977, 48857, 52457, 53377, 60041, 62017, 70241, 75641, 78977, 83537
Offset: 1
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Haskell
a243451 n = a243451_list !! (n-1) a243451_list = [x | x <- a241751_list, a010051' x == 1] -- Reinhard Zumkeller, Apr 11 2015
-
Magma
[a: n in [0..1000] | IsPrime(a) where a is n^2+16];
-
Mathematica
Select[Table[n^2 + 16, {n, 0, 1000}], PrimeQ] Select[Range[1,301,2]^2+16,PrimeQ] (* Harvey P. Dale, Nov 05 2015 *)
-
PARI
list(lim)=if(lim<17,return([])); my(v=List(),t); forstep(n=1,sqrtint(lim\1-16),2, if(isprime(t=n^2+16), listput(v,t))); Vec(v) \\ Charles R Greathouse IV, Aug 18 2017
Comments