OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(19) = 461, as 6 - (4 + 1) = 1
MATHEMATICA
Select[Prime@ Range[10^3], Fold[#1 - #2 &, First@ #, Rest@ #] == 1 &@ Reverse@ Sort@ IntegerDigits@ # &] (* Michael De Vlieger, Feb 08 2017 *)
ldod1Q[n_]:=Module[{idn=Sort[IntegerDigits[n]]}, Last[idn]-Total[Most[ idn]] == 1]; Select[Prime[Range[400]], ldod1Q] (* Harvey P. Dale, Sep 14 2019 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Osama Abuajamieh, Jan 18 2017
STATUS
approved