2022-02-12 Python memo Python 素数判定 n=int(input()) for j in range(2,n+1): if(all([j%i!=0 for i in range(2,j)])): print(j)