OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
a(11)=112 because 1 + 1 + 2 = 4, 2*1*1 = 2, and 4 - 2 = 2, which is prime. [corrected by Harry J. Smith, Nov 07 2009]
PROG
(PARI) isok(k) = {my(d=digits(k)); isprime(vecsum(d) - vecprod(d))} \\ Harry J. Smith, Nov 07 2009
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Enoch Haga, Dec 11 2001
STATUS
approved