OFFSET
1,2
LINKS
Robert Price, Table of n, a(n) for n = 1..1000
EXAMPLE
a(12)=10 because a(12) in sequence A067836 is 29, which is the 10th prime number.
MATHEMATICA
Join[{1}, a = 2; f = 1; Table[f = f*a; a = NextPrime[f + 1] - f; k = 1; While[Prime[k] != a, k++]; k, {n, 2, 69}]] (* Jayanta Basu, Aug 10 2013 *)
PROG
(Python)
from sympy import primepi, nextprime
def A062894_gen(): # generator of terms
a, f = 2, 1
yield 1
while True:
yield primepi(a:=nextprime((f:=f*a)+1)-f)
CROSSREFS
KEYWORD
nonn
AUTHOR
Frank Buss (fb(AT)frank-buss.de), Feb 13 2002
EXTENSIONS
Edited by Dean Hickerson, Jun 10 2002
STATUS
approved