a(n) = p is the smallest prime such that p = n + h(n)^2 and p is the first prime following h(n)^2. The smallest immediate post-square primes with distance n = p - h(n)^2.

A058056

a(n) = p is the smallest prime such that p = n + h(n)^2 and p is the first prime following h(n)^2. The smallest immediate post-square primes with distance n = p - h(n)^2.

Terms

    a(0) =2a(1) =11a(2) =67a(3) =29a(4) =149a(5) =127a(6) =331a(7) =2609a(8) =6733a(9) =2411a(10) =54767a(11) =541a(12) =1777a(13) =5639a(14) =7411a(15) =53377a(16) =30293a(17) =11467a(18) =82963a(19) =3989a(20) =6421a(21) =4783a(22) =10427a(23) =105649a(24) =27581a(25) =585251a(26) =16411a(27) =20477a(28) =675713a(29) =528559

External references