Least k such that the distance from k^2 to closest prime = n or zero if no k exists.

A079666

Least k such that the distance from k^2 to closest prime = n or zero if no k exists.

Terms

    a(0) =1a(1) =3a(2) =8a(3) =17a(4) =12a(5) =11a(6) =18a(7) =51a(8) =200a(9) =59a(10) =238a(11) =41a(12) =276a(13) =165a(14) =104a(15) =281a(16) =214a(17) =397a(18) =348a(19) =159a(20) =650a(21) =305a(22) =778a(23) =923a(24) =2242a(25) =1155a(26) =1090a(27) =911a(28) =822a(29) =1871

External references