OFFSET
1,1
LINKS
Vincenzo Librandi and David A. Corneth, Table of n, a(n) for n = 1..17124 (first 45 terms from Vincenzo Librandi)
MATHEMATICA
Select[Prime[Range[10000]], IntegerQ[Sqrt[FromDigits[Join[{7}, IntegerDigits[#]]]]]&] (* G. C. Greubel, Jun 23 2016 *)
PROG
(PARI) isok(n) = isprime(n) && issquare(n + 7*10^(length(Str(n)))) \\ Michel Marcus, Aug 05 2013
(PARI)
\\ terms upto 10^n
upto(n) = {my(sqrt71 = sqrt(7.1), sqrt80 = sqrt(8.0), r); for(k=2, n, for(j = ceil((sqrt71 * sqrt(10^k))), floor(sqrt80 * sqrt(10^k)), r = j^2%10^k; if(isprime(r), print1(r", "))))} \\ David A. Corneth, Jun 24 2016
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Claudio Meller, Nov 10 2009
EXTENSIONS
More terms from Michel Marcus, Aug 05 2013
Definition modified by Harvey P. Dale, Nov 12 2021
STATUS
approved