OFFSET
1,1
EXAMPLE
29, 163, 181 (resp.) contain 9=3^2, 16=4^2, 81=9^2 (resp.).
MATHEMATICA
ssQ[n_]:=With[{i=IntegerDigits[n]}, AnyTrue[Select[FromDigits/@ Flatten[ Table[ Partition[i, k, 1], {k, Length[i]}], 1], #>1&], IntegerQ[ Sqrt[ #]]&]]; Select[ Prime[ Range[100]], ssQ] (* The program uses the AnyTrue function from Mathematica version 10 *) (* Harvey P. Dale, Dec 13 2015 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Jun 25 2005
STATUS
approved