OFFSET
1,1
COMMENTS
Numbers with product of digits=0, like prime(80) = 409, are not included. - Harry J. Smith, Feb 20 2010
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
181 is the 42nd prime and the product of digits of both is 8.
MATHEMATICA
Select[Table[{n, Prime[n]}, {n, 6500}], DigitCount[#[[1]], 10, 0]==0 && Times@@ IntegerDigits[#[[1]]]==Times@@IntegerDigits[#[[2]]]&][[All, 2]] (* Harvey P. Dale, Oct 17 2020 *)
PROG
(PARI) ProdD(x)= { local(p=1); while (x>9 && p>0, p*=x%10; x\=10); return(p*x) } { n=0; for (m=1, 10^10, p=prime(m); d=ProdD(m); if (ProdD(p) == d && d, write("b066521.txt", n++, " ", p); if (n==1000, return)) ) } \\ Harry J. Smith, Feb 20 2010
CROSSREFS
KEYWORD
base,less,nonn
AUTHOR
Jason Earls, Jan 05 2002
STATUS
approved