OFFSET
1,5
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A085099(n) - 1.
MATHEMATICA
lk[n_]:=Module[{k=1}, While[CompositeQ[k^2+n], k++]; k-1]; Array[lk, 100] (* Harvey P. Dale, Aug 04 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jul 06 2018
STATUS
approved