Let N(p,i) denote the result of applying "nextprime" i times to p; a(n) = smallest prime p such that N(p,3) - p = 2*n, or -1 if no such prime exists.

A339943

Let N(p,i) denote the result of applying "nextprime" i times to p; a(n) = smallest prime p such that N(p,3) - p = 2*n, or -1 if no such prime exists.

Terms

    a(0) =-1a(1) =-1a(2) =-1a(3) =3a(4) =7a(5) =17a(6) =23a(7) =43a(8) =79a(9) =107a(10) =109a(11) =113a(12) =197a(13) =199a(14) =317a(15) =509a(16) =523a(17) =773a(18) =1823a(19) =1237a(20) =1319a(21) =3119a(22) =1321a(23) =2473a(24) =2153a(25) =4159a(26) =2477a(27) =6491a(28) =5581a(29) =7351

External references