Create square.py

This commit is contained in:
Anthony Wang 2021-04-25 16:13:46 -05:00 committed by GitHub
parent 304c5e814d
commit 8e72e3ada8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
next-prime/square.py Normal file
View file

@ -0,0 +1,6 @@
n=int(input())
print([i for i
in range(n,2*n
) if all(not i
%j==0 for j in
range(2, i))])