Submission #6108061
Source Code Expand
N=int(input()) sosuu=[] ans=[] for i in range(2,55556): flag=True for s in sosuu: if i**0.5<s: break if i%s==0: flag=False break if flag: sosuu.append(i) if i%5==1: ans.append(i) print(" ".join(map(str,ans[:N])))
Submission Info
Submission Time | |
---|---|
Task | D - Five, Five Everywhere |
User | gratan |
Language | Python (3.4.3) |
Score | 400 |
Code Size | 319 Byte |
Status | AC |
Exec Time | 200 ms |
Memory | 3444 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 | 193 ms | 3444 KB |
in02.txt | AC | 189 ms | 3188 KB |
sample_01.txt | AC | 176 ms | 3188 KB |
sample_02.txt | AC | 193 ms | 3188 KB |
sample_03.txt | AC | 200 ms | 3188 KB |