OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Prime[Range[1000]], With[{c=Union[IntegerDigits[#]]}, SubsetQ[ IntegerDigits[ #^2], c]&&SubsetQ[IntegerDigits[#^3], c]]&] (* Harvey P. Dale, Mar 19 2018 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved