You are viewing a single comment's thread. Return to all comments →
My simple solution in Python3
def solve(n): if n % 2==1: return 2 n -= 4 if n % 4 ==0 : return 3 return 4
Seems like cookies are disabled on this browser, please enable them to open this website
Triangle Numbers
You are viewing a single comment's thread. Return to all comments →
My simple solution in Python3