OFFSET
1,1
COMMENTS
It is unknown whether this sequence is finite or not. For instance, if the index is exactly the product of the digits, A097223, it is known that only three such primes exist.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000 (first 600 terms from Robert Israel)
FORMULA
MAPLE
p:= 2: count:= 0: Res:= NULL:
for i from 2 while count < 100 do
p:= nextprime(p);
pd:= convert(convert(p, base, 10), `*`);
if pd > 0 and i mod pd = 0 then
count:= count+1; Res:= Res, p
fi
od:
Res; # Robert Israel, Mar 10 2019
MATHEMATICA
seqQ[n_] := PrimeQ[n] && (prod=Times@@IntegerDigits[n])>0 && Divisible[PrimePi[n], prod]; Select[Range[100000], seqQ] (* Amiram Eldar, Mar 11 2019 *)
PROG
(PARI) isok(n) = isprime(n) && (pd=vecprod(digits(n))) && !(primepi(n) % pd); \\ Michel Marcus, Mar 09 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
William C. Laursen, Mar 08 2019
STATUS
approved