a(n) = the first prime in the orbit of n under f(n) = n + the first prime > n, or 0 if no such prime exists.

A089750

a(n) = the first prime in the orbit of n under f(n) = n + the first prime > n, or 0 if no such prime exists.

Terms

    a(0) =3a(1) =2a(2) =3a(3) =43a(4) =5a(5) =13a(6) =7a(7) =19a(8) =43a(9) =379a(10) =11a(11) =113a(12) =13a(13) =31a(14) =18749a(15) =2341a(16) =17a(17) =37a(18) =19a(19) =43a(20) =379a(21) =788941a(22) =23a(23) =53a(24) =113a(25) =241a(26) =511213a(27) =4089763a(28) =29a(29) =61

External references