OFFSET
11,5
MATHEMATICA
IntegerDigits[#][[-2]]&/@Prime[Range[5, 110]] (* Harvey P. Dale, Apr 08 2019 *)
PROG
(PARI) penult(n) = { forprime(x=11, n, s = Str(x); ln = length(s); pu = mid(s, ln-1, 1); print1(pu", ") ) } \ 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) }
(Magma) [Intseq(p)[2]: p in PrimesInInterval(11, 600)]; // Bruno Berselli, Feb 14 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Cino Hilliard, Apr 25 2004
STATUS
approved