OFFSET
2,1
PROG
(PARI) firstpr(n) = { forprime(x=2, n, fd = eval(mid(Str(x), 1, 1)); if(isprime(fd), print1(fd", ")) ) } \ Get a substring of length n from string str starting at position s in str. 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,nonn
AUTHOR
Cino Hilliard, Apr 25 2004
STATUS
approved