Help me in solving BMC09 problem

My issue

i am not able come up with an approach to solve this Question.

My code

# Update the code below to solve the problem

t = int(input())
for i in range(t):
    N = int(input())

Learning course: Python for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone

@gouse0220
Except for all odd number less than 7 its possible for all the integers.