OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..130
MATHEMATICA
Select[Range[11160], PrimeQ[Times@@IntegerDigits[#]] &] (* Jayanta Basu, Jun 02 2013 *)
PROG
(Sage) [x for x in range(10^5) if (prod(Integer(x).digits(base=10))) in Primes()] # Bruno Berselli, May 05 2014
(Scala) (1 to 10000).filter(n => List(2, 3, 5, 7).contains(n.toString.toCharArray.map(_ - 48).scanRight(1)(_ * _).head)) // Alonso del Arte, Apr 14 2020
(PARI) isok(n) = isprime(vecprod(digits(n))); \\ Michel Marcus, Apr 17 2020
(PARI) is(n)=my(d=digits(n), p); for(i=1, #d, if(d[i]==1, next); if(isprime(d[i]) && !p, p=1, return(0))); p \\ Charles R Greathouse IV, Apr 18 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
More terms from Erich Friedman.
STATUS
approved