Submission #6439621
Source Code Expand
n = int(input()) mx = 55555 ans = [] primes = [2] for i in range(3, mx + 1, 2): if all(i % p != 0 for p in primes): primes.append(i) if i % 5 == 1: ans.append(i) if len(ans) == n: break print(*ans)
Submission Info
Submission Time | |
---|---|
Task | D - Five, Five Everywhere |
User | itopost |
Language | PyPy3 (2.4.0) |
Score | 400 |
Code Size | 260 Byte |
Status | AC |
Exec Time | 170 ms |
Memory | 38896 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 400 / 400 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | in01.txt, in02.txt, sample_01.txt, sample_02.txt, sample_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in01.txt | AC | 168 ms | 38640 KB |
in02.txt | AC | 169 ms | 38896 KB |
sample_01.txt | AC | 161 ms | 38256 KB |
sample_02.txt | AC | 162 ms | 38256 KB |
sample_03.txt | AC | 170 ms | 38256 KB |