Task: | Interesting number |
Sender: | \(._.)/ |
Submission time: | 2024-09-28 16:57:41 +0300 |
Language: | Python3 (PyPy3) |
Status: | READY |
Result: | ACCEPTED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.09 s | details |
#2 | ACCEPTED | 0.07 s | details |
Code
t = int(input()) nums = [2, 3, 5, 7, 11, 101, 131, 151, 181, 191, 313, 353, 373, 383, 727, 757, 787, 797, 919, 929] for i in range(t): n = int(input()) xs = list(map(int, input().split())) for j in range(n): if xs[j] in nums: print(xs[j])