OFFSET
1,1
EXAMPLE
64 is in the sequence because 6^2 + 1 = 37, 10^2+1 = 101 and 101 - 37 = 64 is square.
MAPLE
q:=2:for n from 2 to 100 do:p:=n^2+1:if type(p, prime)=true then x:=p-q:q:=p: z:=sqrt(x):if z=floor(z) then printf(`%d, `, z):else fi:od:
MATHEMATICA
Select[#[[2]]-#[[1]]&/@Partition[Select[Range[2000000]^2+1, PrimeQ], 2, 1], IntegerQ[ Sqrt[#]]&] (* Harvey P. Dale, Nov 08 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Sep 04 2012
STATUS
approved