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

A144103

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

Terms

    a(0) =-1a(1) =3a(2) =5a(3) =23a(4) =19a(5) =47a(6) =83a(7) =211a(8) =109a(9) =317a(10) =619a(11) =199a(12) =1373a(13) =1123a(14) =1627a(15) =4751a(16) =2557a(17) =3413a(18) =4289a(19) =1321a(20) =2161a(21) =2477a(22) =7963a(23) =5591a(24) =9551a(25) =17239a(26) =15823a(27) =14087a(28) =19603a(29) =34963

External references