A270269 Prime numbers with locations of right angle turns in the Ulam square spiral that are vertices of isosceles right triangles.
3, 5, 7, 31, 37, 43, 8011, 8101, 8191, 920641, 921601, 922561, 3894703, 3896677, 3898651, 5902471, 5904901, 5907331, 7450171, 7452901, 7455631, 7482961, 7485697, 7488433, 36066031, 36072037, 36078043, 37155121, 37161217, 37167313, 39759331, 39765637, 39771943
Offset: 1
Keywords
Links
- Michel Lagneau, Illustration
Programs
-
Maple
nn:=20000:T:=array(1..nn):a0:=1:kk:=0: for p from 1 to nn do : a1:=a0+floor(p/2):a0:=a1: if isprime(a1) then kk:=kk+1:T[kk]:=a1: else fi: od: for n from 1 to kk-2 do: d1:=T[n+2]-T[n+1]:d2:=T[n+1]-T[n]: if d1=d2 then printf("%d %d %d \n", T[n], T[n+1], T[n+2]): else fi: od:
Comments