Cześć, macie jakieś wskazówki dlaczego SPOJ nie zatwierdza kodu ? Pozdrawiam. :)
test=int(input())
if test<100000:
while test>=0:
x =int(input())
if x >= 1 and x <= 10000:
if x == 5 or x == 2 or x == 3:
print("TAK")
test=test-1
elif x % 2 == 0 or x % 3 == 0 or x % 5 == 0 or x == 1:
print("NIE")
test = test - 1
else:
print("TAK")
test = test - 1
else:
print('Nieprawidlowa podana liczba!')
else:
print('Nieprawidlowa liczba testow!')