import numpy as np
myinput=input().split()#n盏灯,k个人
myinput=list(map(int,myinput))
lights=np.zeros(myinput[0])
for i in range(1,myinput[1]+1):
for j in range(1,myinput[0]+1):
if j%i==0 and i==1:
lights[j-1]=1
elif j%i==0:
lights[j-1]*=-1
for i in range(myinput[0]):
if lights[i]==1:
print(i+1,end=' ')#输出灯的编号
7 3
1 5 6 7
import numpy as np
myinput=int(input())
n=myinput
myarray=np.zeros((n,n))
count=0
line=n
while(count<n*n):
for i in range(n-line,line):
count+=1
myarray[i][line-1]=count
for i in range(line-2,n-line-1,-1):
count+=1
myarray[line-1][i]=count
for i in range(line-2,n-line-1,-1):
count+=1
myarray[i][n-line]=count
for i in range(n-line+1,line-1):
count+=1
myarray[n-line][i]=count
line=line-1
print(myarray)