OFFSET
1,1
EXAMPLE
For p=7=odd, prime(7)=17 (1<7=odd); n=29 (2<9=odd), prime(29)=109 (0<1<9=odd), etc.
MAPLE
A054055 := proc(n) max(op(convert(n, base, 10))) ; end:
for n from 1 to 400 do
ldn := A054055(n) ;
if type(ldn, odd) then
p := ithprime(n) ;
ldp := A054055(p) ;
if ldp = ldn then
printf("%d, ", p) ;
fi;
fi;
od: # R. J. Mathar, Feb 20 2009
PROG
(PARI) is(n) = vp = vecmax(digits(n)); if(vp % 2 == 0, return(0)); vpp = vecmax(digits(primepi(n))); vp == vpp \\ David A. Corneth, Jan 22 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Juri-Stepan Gerasimov, Feb 17 2009
EXTENSIONS
Missing numbers inserted by R. J. Mathar, Feb 20 2009
Name corrected by Jon E. Schoenfield, Jan 22 2019
STATUS
approved