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

 
 
 
 
General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
43018449 Practice:
Jordao_A
230B - 28 PyPy 2 Wrong answer on test 4 1746 ms 100384 KB 2018-09-18 05:10:35 2018-09-18 05:10:35
→ Source
tprimos = [True] * 1000000
caraio = {}
for i in range(2,1000000):
	if tprimos[i]:
		caraio[i*i] = "Agora_vai"
		for j in range(i*i, 1000000, i):
			tprimos[i] = False
		
numero = int(raw_input())
valor = map(int, raw_input().split())

for desgraca in valor:
	if desgraca in caraio:
		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