OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..3001
MATHEMATICA
fQ[n_] := Min[IntegerDigits[n]] > 0; Select[Prime @ Range @ 90, fQ[#] && fQ[#^2] &]
Select[Prime[Range[100]], FreeQ[{IntegerDigits[#], IntegerDigits[#^2]}, 0]&] (* Harvey P. Dale, Jun 14 2024 *)
PROG
(PARI) (vmd (n) = vecmin (digits (n))); p = 2; for (k = 1, 300, if (vmd (p) > 0 && vmd (p^2) > 0, print1 (p ", " )); p = nextprime (1 + p))
(Python)
from sympy import prime
A245576_list = [p for p in (prime(i) for i in range(1, 10**4)) if not(str(p).count('0') or str(p**2).count('0'))]
# Chai Wah Wu, Dec 27 2014
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Dec 25 2014
STATUS
approved