From 8e72e3ada83d0bfe3975072a8473b881c3bd2855 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 25 Apr 2021 16:13:46 -0500 Subject: Create square.py --- next-prime/square.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 next-prime/square.py 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))]) -- cgit v1.2.3-70-g09d2