OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..5200
EXAMPLE
a(2)= 19 which is 8th prime. prime(8)-2*8= 19-16= 3 which is also prime.
a(6)= 67 which is 19th prime. prime(19)-2*19= 67-38= 29 which is also prime.
MAPLE
KD := proc() local a, b; a:= ithprime(n); b := a-2*n; if isprime(b) then RETURN (a); fi; end: seq(KD(), n=1..500);
MATHEMATICA
TK = Select[Table[{Prime[n], Prime[n] - 2*n}, {n, 200}], PrimeQ[#[[2]]] &]; Transpose[TK][[1]]
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Nov 07 2013
STATUS
approved