Difference between n and the second-smallest prime larger than n.

A105161

Difference between n and the second-smallest prime larger than n.

Terms

    a(0) =3a(1) =2a(2) =3a(3) =4a(4) =3a(5) =6a(6) =5a(7) =6a(8) =5a(9) =4a(10) =3a(11) =6a(12) =5a(13) =6a(14) =5a(15) =4a(16) =3a(17) =6a(18) =5a(19) =10a(20) =9a(21) =8a(22) =7a(23) =8a(24) =7a(25) =6a(26) =5a(27) =4a(28) =3a(29) =8

External references