OFFSET
1,1
COMMENTS
If the digits of n are d1,d2,...,dn, then "difference of digits" means d1-d2-...-dn. - Sean A. Irvine, Jul 30 2022
MATHEMATICA
dc[n_]:=(id=IntegerDigits[n]; And[And@@CompositeQ[id], And@@PrimeQ/@Flatten@{id-1, Total[id]-1, Abs[id[[1]]-Total[Drop[id, 1]]]-1}]); Select[Range[44444], dc] (* Jake L Lande, Jul 31 2024 *)
CROSSREFS
KEYWORD
nonn,less,base
AUTHOR
Felice Russo, Dec 01 2000
EXTENSIONS
Missing single-digit terms inserted by Sean A. Irvine, Jul 30 2022
STATUS
approved