OFFSET
1,5
COMMENTS
For n=1,2,3,4,6,13,19,28,41,66,85,..., A002110(n) + prime(n+1)^2 is a prime; i.e., the multiplier w is 1.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..500
EXAMPLE
2310 + 169 = 2479 = 37*67 = 2*3*5*7*11 + 13^2 is not prime but 2*2310 + 169 = 4789 is a prime.
MATHEMATICA
Table[Function[{P, q}, w = 1; While[! PrimeQ[P w + q], w++]; w] @@ {Times @@ #2, First[#1]^2} & @@ # &@ TakeDrop[Take[#, n], -1], {n, 2, Length@ #}] &@ Prime@ Range@ 84 (* Michael De Vlieger, Jul 14 2017 *)
PROG
(PARI) a(n) = {my(m=1, primo=prod(k=1, n, prime(k))); while (!isprime(primo*m + prime(n+1)^2), m++); m; } \\ Michel Marcus, Nov 20 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Apr 25 2000
STATUS
approved