OFFSET
2,1
COMMENTS
EXAMPLE
The 5th prime is 11. The 11th digit of sqrt(2) is 3, the 5th term in the sequence.
PROG
(PARI) \primeth.gp primeth(n) = { default(realprecision, 1000); p=Str(sqrt(2)*10^999); default(realprecision, 28); forprime(x=2, n, print1(mid(p, x, 1)", ") ) } mid(str, s, n) = { v =""; tmp = Vec(str); ln=length(tmp); for(x=s, s+n-1, v=concat(v, tmp[x]); ); return(v) }
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Cino Hilliard, Jan 22 2004
STATUS
approved