OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
13(2=abs(1-3)), 29(7=abs(2-9)), 31(2=3-1)
MATHEMATICA
sdsodQ[n_]:=Module[{sidn=Sort[IntegerDigits[n]]}, PrimeQ[Abs[sidn[[1]]-Total[Rest[sidn]]]]]; Select[Prime[Range[150]], sdsodQ] (* Harvey P. Dale, Feb 01 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Juri-Stepan Gerasimov, Mar 15 2009, May 25 2009
EXTENSIONS
Single-digit primes added, duplicates of 421 and 443 removed - R. J. Mathar, May 19 2010
STATUS
approved