• + 0 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