OFFSET
1,1
COMMENTS
Sequence is infinite. Proof: (10^p-1)/9 is a term if p is a prime. The sum of the digits = p and the product of digits + 1 = 2. Conjecture: There are infinitely many terms not of the form (10^p-1)/9.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[n_] := Block[{d = IntegerDigits[n]}, PrimeQ[Plus @@ d] && PrimeQ[1 + Times @@ d]]; Select[ Range[424], f[ # ] & ]
Select[Range[400], AllTrue[{Total[IntegerDigits[#]], Times @@ IntegerDigits[ #]+1}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jun 24 2017 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Sep 06 2003
EXTENSIONS
More terms from Robert G. Wilson v, Sep 07 2003
STATUS
approved