OFFSET
1,2
COMMENTS
2 is the smallest one digit prime, 11 is the smallest two digit prime and 101 is the smallest three digit prime.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
For n=0, 2*n^2 + 11*n + 101 = 2*0^2 + 11*0 + 101 = 101 (prime)
for n=48, 2*n^2 + 11*n + 101 = 2*48^2 + 11*48 + 101 = 5237 (prime)
for n=92, 2*n^2 + 11*n + 101 = 2*92^2 + 11*92 + 101 = 18041 (prime)
MATHEMATICA
Select[Range[0, 400], PrimeQ[2#^2+11#+101]&] (* Harvey P. Dale, Aug 16 2020 *)
PROG
(Magma) [n: n in [0..1000] | IsPrime(2*n^2 + 11*n + 101)] // Vincenzo Librandi, Nov 18 2010
(PARI) is(n)=isprime(2*n^2+11*n+101) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Feb 15 2005
STATUS
approved