Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

 
 
 
 
General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
43094345 Practice:
leal
230B - 28 Python 2 Wrong answer on test 1 278 ms 0 KB 2018-09-20 00:26:11 2018-09-20 00:26:11
→ Source
def isPrime(n):
    if n>1:
        if n%2 == 0 and n<2:
            return False
        else:
            for i in range(3,((int(n**0.5))+1),2):
                if n%i == 0:
                    return False
            return True



n = int(raw_input())

x = map(int,raw_input().split())

for i in x:
    raiz = int((i**0.5))
    if isPrime(raiz) and raiz**2 == i:
        print "Yes"
    else:
        print "No"
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details