Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Python: One Line Prima.lity Test
HasteBin0
Nov 4th, 2019
176
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
from
math
import
sqrt
,
ceil
def
prime
(
n:
int
)
-
>
bool
:
return
0
not
in
(
n % i
for
i
in
range
(
2
,
ceil
(
sqrt
(
n
)
)
+
1
)
)
# n > 3.
print
(
tuple
(
(
i
,
prime
(
i
)
)
for
i
in
range
(
300
)
)
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Load CL.exe for Visual Studio Code
Winbatch | 6 min ago | 0.90 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 14 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 21 min ago | 0.38 KB
Untitled
C# | 55 min ago | 4.76 KB
ImmortalHub v1.2
Lua | 1 hour ago | 0.07 KB
Wayfire.ini_now
INI file | 1 hour ago | 21.08 KB
Code Example
Lua | 1 hour ago | 8.95 KB
Untitled
HTML | 1 hour ago | 0.32 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!