fork download
  1. testyN = int(input("Podaj liczbe testow n: "))
  2.  
  3. lista = []
  4.  
  5. if testyN < 10000:
  6. for j in range(testyN):
  7. n = int(input("Wprowadz liczbe: "))
  8.  
  9. a = 0
  10.  
  11. for i in range(1, n + 1, 1):
  12. if n % i == 0:
  13. a += 1
  14.  
  15. if a == 2:
  16. lista.append("TAK")
  17. else:
  18. lista.append("NIE")
  19. for k in range(testyN):
  20. print(lista[k])
Runtime error #stdin #stdout #stderr 0.14s 23388KB
stdin
Standard input is empty
stdout
Podaj liczbe testow n: 
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
    testyN = int(input("Podaj liczbe testow n: "))
EOFError: EOF when reading a line