diff options
author | Anthony Wang | 2021-04-25 16:13:46 -0500 |
---|---|---|
committer | GitHub | 2021-04-25 16:13:46 -0500 |
commit | 8e72e3ada83d0bfe3975072a8473b881c3bd2855 (patch) | |
tree | 44a306278a6215d52cd40819cde4ca77f3f97112 | |
parent | 304c5e814d263e0029b3fe86902064ca20e079fc (diff) |
Create square.py
-rw-r--r-- | next-prime/square.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/next-prime/square.py b/next-prime/square.py new file mode 100644 index 0000000..c6a8ee7 --- /dev/null +++ b/next-prime/square.py @@ -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))]) |