OFFSET
1,1
MATHEMATICA
fldsQ[n_]:=Module[{idn=IntegerDigits[n]}, IntegerQ[Sqrt[ idn[[1]] + idn[[-1]]]]]; Select[Prime[Range[200]], fldsQ] (* Harvey P. Dale, Aug 12 2017 *)
PROG
(PARI) okdigs(n) = digs = digits(n); issquare(digs[1]+digs[#digs]);
isok(n) = isprime(n) && okdigs(n); \\ Michel Marcus, Oct 05 2013
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Zak Seidov, Sep 20 2003
STATUS
approved