diff options
Diffstat (limited to 'progs/a306.py')
-rw-r--r-- | progs/a306.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a306.py b/progs/a306.py new file mode 100644 index 0000000..bd19290 --- /dev/null +++ b/progs/a306.py @@ -0,0 +1,5 @@ +def lucky_num(n):
+ List=range(-1,n*n+9,2)
+ i=2
+ while List[i:]:List=sorted(set(List)-set(List[List[i]::List[i]]));i+=1
+ return List[1:n+1]
\ No newline at end of file |