Lucky Numbers

  • + 0 comments

    what's the issue with this code :

    def isdivi(num):
        if num <0 :
            return False 
        if num == 0:
            return True
        
        return (isdivi(n-7)  or isdivi(n-4))
    
    q = int(raw_input().strip())
    for a0 in xrange(q):
        n = long(raw_input().strip())
        if (isdivi(n)):
            print "Yes"
        else :
            print "No"