OFFSET
1,2
EXAMPLE
a(6) = 102001 because 1^2+0^2+2^2+0^2+0^2+1^2 = 6 = number of digits.
MAPLE
with(numtheory):Digits:=25:for k from 0 to 10 do: id:=0:for n from 10^k to
10^(k+1)-1while(id=0) do:l:=length(n):n0:=n:s:=0:for m from 1 to l do:q:=n0:u:=irem(q,
10):v:=iquo(q, 10):n0:=v :s:=s+u^2:od: if s=l and type(n, prime)=true then id:=1:print(n):else
fi:od:od:
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Jan 12 2011
STATUS
approved