summaryrefslogtreecommitdiff
path: root/progs/a306.py
blob: bd19290ebc6d585764fd523465823a55f90b42d1 (plain)
1
2
3
4
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]