Skip to main content
deleted 7 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Python 2, 146146 130 bytes

Prints a 2d-list of booleans.

R=range(63)
for i in R:m=[[i>0==(x*y-961)*0**m[y][x]*~-sum(sum(k[x-(x>0):][k[x+x%~x:2+(x>0)]x+2])for k in m[y-(y>0):][m[y+y%~y:2+(y>0)]y+2])for x in R]for y in R]
print m

Try it online!Try it online!

Python 2, 146 bytes

Prints a 2d-list of booleans.

R=range(63)
for i in R:m=[[i>0==(x*y-961)*0**m[y][x]*~-sum(sum(k[x-(x>0):][:2+(x>0)])for k in m[y-(y>0):][:2+(y>0)])for x in R]for y in R]
print m

Try it online!

Python 2, 146 130 bytes

Prints a 2d-list of booleans.

R=range(63)
for i in R:m=[[i>0==(x*y-961)*0**m[y][x]*~-sum(sum(k[x+x%~x:x+2])for k in m[y+y%~y:y+2])for x in R]for y in R]
print m

Try it online!

Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Python 2, 146 bytes

Prints a 2d-list of booleans.

R=range(63)
for i in R:m=[[i>0==(x*y-961)*0**m[y][x]*~-sum(sum(k[x-(x>0):][:2+(x>0)])for k in m[y-(y>0):][:2+(y>0)])for x in R]for y in R]
print m

Try it online!