diff options
-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))]) |