OFFSET
0,1
COMMENTS
These numbers may not contain the digits {0, 3, 6, 7 or 9} and must end with the digit 1. Also the number of 2's plus half the number of 4's plus a quarter of the number of 8's must equal the number of 5's which in turn must equal n. - Robert G. Wilson v, Nov 06 2003
EXAMPLE
a(4) = 4545551 and the digit product = 10^4.
MATHEMATICA
NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; a = Table[0, {10}]; p = 2; Do[ q = Log[10, Times @@ IntegerDigits[p]]; If[q != 0 && IntegerQ[q] && a[[q]] == 0, a[[q]] = p; Print[q, " = ", p]]; p = NextPrim[p], {n, 1, 10^9}]; a
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Oct 30 2003
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Nov 06 2003
STATUS
approved