OFFSET
1,1
EXAMPLE
23 belongs to the sequence because 2^2 + 3^3 = 31 is a prime.
MAPLE
From R. J. Mathar, Oct 10 2010: (Start)
isA072185 := proc(n) local d ; if isprime(n) then d := convert(n, base, 10) ; sdg := add( op(-i, d)^ithprime(i), i=1..nops(d)) ; isprime(sdg) ; else false; end if; end proc:
for p from 2 to 2000 do if isA072185(p) then printf("%d, ", p) ; fi; end do: (End)
PROG
(UBASIC) 30 for I=10 to 100000 40 L=alen(I) 50 Q=2:A=0 60 A1=val(mid(str(I), 2, 1)) 70 for H=2 to L 80 A=A+val(mid(str(I), H+1, 1))^nxtprm(Q) 90 Q=nxtprm(Q) 100 next 110 P=A+A1^2 120 if prmdiv(P)=P and P<>1 and prmdiv(I)=I and I<>1 then print I 130 next
CROSSREFS
KEYWORD
easy,base,nonn
AUTHOR
Felice Russo, Jul 01 2002
EXTENSIONS
More terms from R. J. Mathar, Oct 10 2010
STATUS
approved