### Prime Numbers in Python – optimize

So i have simple code in python, which on prime number respond ‘TAK’ and on notprime ‘NIE’ I trying to execute in on SPOJ, but this code is too non-optimized – how can I improve it to improve performance? n=int(input()) suma = 0 m=0 while m<n: if n>100000: break x=int(input()) if 1<x<10000: for i in…

Details