For this Question: A tuple (R, G, B) is considered good if R*G+B <= N and R, G and B are all positive. Given N, find number of good tuples.Input contains a single integer N.

Constraints:
1 <= N <= 1000000Print number of good tuples.Sample Input
3

Sample Output
4

Explanation:
Following are the good tuples:
(1, 1, 1)
(1, 1, 2)
(1, 2, 1)
(2, 1, 1), I have written this Solution Code: n = int(input())
m = n-1
count = 0
for r in range(1, n):
    c = m//r
    count += c*(n-r*c) + r*c*(c-1)//2
print(count), In this Programming Language: Python, Now tell me if this Code is compilable or not?