For this Question: Currently, Adk is researching a virus that has conquered the planet. For killing the virus, three chemicals (A, B, and C) are required in a particular proportion. Let the quantities of chemicals be a, b, and c respectively.
The virus will be killed if a<sup>2</sup>+b<sup>2</sup>+c<sup>2</sup>=n.
You need to find the number of triplets satisfying the condition for all the values of n ranging from 1 to N.
<b>Note:</b> a, b and c must be integers.
<b>Note:</b> Obviously, the amount of chemical cannot be negative.The first and only line of input contains an integer N.

<b>Constraints:</b>
1 <= N <= 10000Output N integers, the number of triplets satisfying the condition for n = 1, 2, 3, ..., N on a new line.Sample Input:
10

Sample Output:
3
3
1
3
6
3
0
3
6
6

<b>Explanation:</b>
For n=1, triplets are (0, 0, 1), (1, 0, 0), (0, 1, 0)
For n=7, there are no triplets satisfying the condition.
For n=10, triplets are (0, 1, 3), (0, 3, 1), (1, 0, 3), (1, 3, 0), (3, 0, 1), (3, 1, 0)., I have written this Solution Code: n = int(input())
ans = [0]*(n+1)
for i in range(0,101):
    temp1 = i*i
    for j in range(0,101):
        temp2 = j*j
        for k in range(0,101):
            temp3 = k*k
            if temp1+temp2+temp3<=n:
                ans[temp1+temp2+temp3] += 1

for i in range(1,n+1):
    print(ans[i]), In this Programming Language: Python, Now tell me if this Code is compilable or not?