OFFSET
1,1
COMMENTS
Note that the cube analog "Numbers whose digit sum as well as sum of the cubes of the digits is a prime" only occurs when A007953(n) = Digital sum (i.e., sum of digits) of n) = 2, as otherwise A055012(n) = Sum of cubes of digits of n = 2, i.e., n = 2, 11, 20, 101, 110, 1001, 1010, ... since for natural numbers A^3 + B^3 is divisible by A+B. Hence "Numbers whose digit sum as well as sum of the cubes of the digits is a prime" begins 2, 11, 101, ... . - Jonathan Vos Post, May 10 2012
EXAMPLE
25 is here because 2 + 5 = 7 and 2*2 + 5*5 = 29 both are prime.
MATHEMATICA
fQ[n_] := Module[{d = IntegerDigits[n]}, PrimeQ[Total[d]] && PrimeQ[Total[d^2]]]; Select[Range[500], fQ] (* T. D. Noe, May 09 2012 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Sumit Maheshwari, May 09 2010
STATUS
approved