%I #6 Oct 15 2013 22:32:12
%S 0,2,3,61,5,0,7,61277761,0,0,11,0,31,41,0,61,71,0,163,2,0,0,
%T 18258901387,0,5265674839116110941,
%U 6716872795737314976899264656807717363719079328404119318887571869813,0
%N a(n)=p is smallest prime such that rev(p)=n^j with some exponent, or 0 if no such prime exists [when e.g. n=1,n=3k or n=11k, k>1].
%e n=86: a(86)=6505868216024313214870917495263873755562243530151045641,
%e and rev[86]=86^28.
%Y Cf. A085298, A085299, A085300, A085324, A085325.
%K nonn,base
%O 1,2
%A _Labos Elemer_, Jul 03 2003