OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= proc(n) local p;
if not isprime(n) then return false fi;
p:= 1+ convert(subs(0=NULL, convert(n, base, 10)), `*`);
isprime(p)
end proc:
select(filter, [2, seq(i, i=3..1000, 2)]); # Robert Israel, Mar 06 2018
MATHEMATICA
okQ[n_]:=Module[{idn=IntegerDigits[n]}, PrimeQ[1+Times@@Select[idn, #>0&]]]
Select[Prime[Range[150]], okQ] (* Harvey P. Dale, Jan 20 2011 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jason Earls, Jun 22 2003
STATUS
approved