Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())

for i in range(1,N+1):
  ans = 0
  if i < 6:
    print(0)
  else:
    total = 11
    if i > total/2:
      for a in range(2,N+1):
        for b in range(2,N+1):
          for c in range(2,N+1):
            total = a**2 + b**2 +c**2
            if total == 2*i:
              if max(a,b,c) < a+b+c-max(a,b,c):
                if len({a,b,c}) == 1:
                  ans = 1
                  continue
                elif len({a,b,c}) == 2:
                  ans = 3
                  continue
                else:
                  ans = 6
                  continue
    else:
      ans = 0

              #print(a,b,c)
    print(ans)



Fixed submission:
import numpy as np

N = int(input())

#print(1e+5)
ans = np.zeros(int(1e+5),dtype = int)
for x in range(1,int(N**0.5+1)):
  for y in range(x,int((N-x**2)**0.5+1)):
    for z in range(y,int((N-x**2-y**2)**0.5+1)):
      n = x**2 + y**2 + z**2 +x*y+y*z+z*x
      num = len({x,y,z})
      if num == 1:
        ans[n] += 1
      elif num == 2:
        ans[n] += 3
      elif num == 3:
        ans[n] += 6

for i in range(1,N+1):
  print(ans[i])

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())

for i in range(1,N+1):
  ans = 0
  if i < 6:
    print(ans)
  else:
    for a in range(2,int((2*i)**0.5+1)):
      for b in range(a,int((2*i-a**2)**0.5+1)):
        for c in range(b,int((2*i-a**2-b**2)**0.5+1)):
          #print(a,b,c)
          if a**2 + b**2 + c**2 > 2*i:
            ans = 0
          if a**2 + b**2 + c**2 == 2*i:
            if max(a,b,c) < a+b+c-max(a,b,c):
              if len({a,b,c}) == 1:
                ans = 1
              elif len({a,b,c}) == 2:
                ans = 3
              else:
                ans = 6
              #print(a,b,c)
    print(ans)



Fixed submission:
import numpy as np

N = int(input())

#print(1e+5)
ans = np.zeros(int(1e+5),dtype = int)
for x in range(1,int(N**0.5+1)):
  for y in range(x,int((N-x**2)**0.5+1)):
    for z in range(y,int((N-x**2-y**2)**0.5+1)):
      n = x**2 + y**2 + z**2 +x*y+y*z+z*x
      num = len({x,y,z})
      if num == 1:
        ans[n] += 1
      elif num == 2:
        ans[n] += 3
      elif num == 3:
        ans[n] += 6

for i in range(1,N+1):
  print(ans[i])

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())

for i in range(1,N+1):
  ans = 0
  if i < 6:
    print(ans)
  else:
    for a in range(2,int((2*i)**0.5+1)):
      for b in range(a,int((2*i-a**2)**0.5+1)):
        for c in range(b,int((2*i-a**2-b**2)**0.5+1)):
          #print(a,b,c)
          if a**2 + b**2 + c**2 == 2*i:
            if max(a,b,c) < a+b+c-max(a,b,c):
              if len({a,b,c}) == 1:
                ans = 1
              elif len({a,b,c}) == 2:
                ans = 3
              else:
                ans = 6
              #print(a,b,c)
    print(ans)



Fixed submission:
import numpy as np

N = int(input())

#print(1e+5)
ans = np.zeros(int(1e+5),dtype = int)
for x in range(1,int(N**0.5+1)):
  for y in range(x,int((N-x**2)**0.5+1)):
    for z in range(y,int((N-x**2-y**2)**0.5+1)):
      n = x**2 + y**2 + z**2 +x*y+y*z+z*x
      num = len({x,y,z})
      if num == 1:
        ans[n] += 1
      elif num == 2:
        ans[n] += 3
      elif num == 3:
        ans[n] += 6

for i in range(1,N+1):
  print(ans[i])

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())

for i in range(1,N+1):
  ans = 0
  if i < 6:
    print(ans)
  else:
    for a in range(2,int((2*i)**0.5+1)):
      for b in range(2,int((2*i-a**2)**0.5+1)):
        for c in range(2,int((2*i-a**2-b**2)**0.5+1)):
          #print(a,b,c)
          if a**2 + b**2 + c**2 == 2*i:
            if max(a,b,c) < a+b+c-max(a,b,c):
              ans += 1
              #print(a,b,c)
    print(ans)



Fixed submission:
import numpy as np

N = int(input())

#print(1e+5)
ans = np.zeros(int(1e+5),dtype = int)
for x in range(1,int(N**0.5+1)):
  for y in range(x,int((N-x**2)**0.5+1)):
    for z in range(y,int((N-x**2-y**2)**0.5+1)):
      n = x**2 + y**2 + z**2 +x*y+y*z+z*x
      num = len({x,y,z})
      if num == 1:
        ans[n] += 1
      elif num == 2:
        ans[n] += 3
      elif num == 3:
        ans[n] += 6

for i in range(1,N+1):
  print(ans[i])