Create square.py
This commit is contained in:
parent
304c5e814d
commit
8e72e3ada8
1 changed files with 6 additions and 0 deletions
6
next-prime/square.py
Normal file
6
next-prime/square.py
Normal 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))])
|
Reference in a new issue