(MAGMAMagma) [n: n in [0..1000] | IsPrime(2*n^2 + 11*n + 101)] // Vincenzo Librandi, Nov 18 2010
(MAGMAMagma) [n: n in [0..1000] | IsPrime(2*n^2 + 11*n + 101)] // Vincenzo Librandi, Nov 18 2010
editing
approved
Harvey P. Dale, <a href="/A102166/b102166.txt">Table of n, a(n) for n = 1..1000</a>
approved
editing
editing
approved
Select[Range[0, 400], PrimeQ[2#^2+11#+101]&] (* Harvey P. Dale, Aug 16 2020 *)
approved
editing
proposed
approved
editing
proposed
If For n=0, then 2*n^2 + 11*n + 101 = 2*0^2 + 11*0 + 101 = 101 (prime)
If for n=48, then 2*n^2 + 11*n + 101 = 2*48^2 + 11*48 + 101 = 5237 (prime)
If for n=92, then 2*n^2 + 11*n + 101 = 2*92^2 + 11*92 + 101 = 18041 (prime)
(MAGMA) [n: n in [0..1000] | IsPrime(2*n^2 + 11*n + 101)] [From V. // _Vincenzo Librandi, _, Nov 18 2010]
approved
editing
editing
approved
(PARI) is(n)=isprime(2*n^2+11*n+101) \\ Charles R Greathouse IV, Jun 13 2017
nonn,easy
approved
editing