Submission #6436300
Source Code Expand
import sys #+++++ def isp(v): max_v = int(v**(0.5)) for i in range(2,max_v+1): if v % i ==0: return False return True def mmp(n): ret=[] val=11 while len(ret) < n: if isp(val): ret.append(val) val += 10 return ret def main(): #l=[11,31,61,71,91,101] n = int(input()) l=mmp(n) #print(l) print(' '.join([str(v) for v in l])) #+++++ if __name__ == "__main__": if sys.platform =='ios': sys.stdin=open('inputFile.txt') else: input = sys.stdin.readline ret = main() if ret is not None: print(ret)
Submission Info
Submission Time | |
---|---|
Task | D - Five, Five Everywhere |
User | Hum1060 |
Language | Python (3.4.3) |
Score | 400 |
Code Size | 577 Byte |
Status | AC |
Exec Time | 18 ms |
Memory | 3064 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 | 18 ms | 3064 KB |
in02.txt | AC | 18 ms | 3064 KB |
sample_01.txt | AC | 17 ms | 3064 KB |
sample_02.txt | AC | 17 ms | 3064 KB |
sample_03.txt | AC | 17 ms | 3064 KB |