A239389 The record values of d for the n in A239388.
1, 2, 3, 4, 7, 8, 11, 13, 32, 35, 40, 47, 50, 100, 118, 130, 178, 208, 220, 250, 254, 320, 353, 380, 401, 404, 466, 487, 598, 640, 652, 676, 680, 692
Offset: 1
Crossrefs
Cf. A069003 (least number d such that n^2 + d^2 is prime).
Programs
-
Mathematica
leastK[n_] := Module[{k = 1}, While[! PrimeQ[n^2 + k^2], k++]; k]; nn = 10000; t = {}; kMax = 0; Do[k = leastK[n]; If[k > kMax, kMax = k; AppendTo[t, {n, k}]], {n, nn}]; Transpose[t][[2]]
Extensions
a(24)-a(31) from Giovanni Resta, Mar 18 2014
a(32)-a(34) from Emmanuel Vantieghem, Jan 13 2017