OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=2 because the distance between (2,3) and (5,7) is 5. a(2)=67 because the distance between (67,71) and (73,79) is 10.
MATHEMATICA
cdQ[{a_, b_, c_, d_}]:=IntegerQ[Sqrt[(a-c)^2+(b-d)^2]]; Transpose[Select[ Partition[ Prime[Range[700]], 4, 1], cdQ]][[1]] (* Harvey P. Dale, Mar 23 2015 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Gil Broussard, Jan 16 2009
STATUS
approved