OFFSET
1,2
EXAMPLE
a(2)=2 because prime(2)=3 and x^2 - x - 3 generates {-3, -3, -1, 3, 9}. This contains two integers, -3 and 3, whose absolute value is prime.
a(14)=32 because prime(14)=43 and x^2 - x - 43 generates 32 prime numbers for x = 0..44.
PROG
(PARI) isaprime(x) = isprime(x) || isprime(-x);
nbp(n) = {v = vector(prime(n)+2, x, x--; x^2-x-prime(n)); vp = select(x->isaprime(x), v); vp = Set(vp); #vp; } \\ Michel Marcus, Sep 13 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles Kusniec, Sep 12 2016
EXTENSIONS
More terms from Michel Marcus, Sep 13 2016
STATUS
approved