Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
SimpleNum
Shidongan
Jun 18th, 2019
107
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
bool
simpleNum
(
int
num
)
{
if
(
num
%
2
==
0
)
{
return
false
;
}
for
(
int
i
=
3
;
i
<=
sqrt
(
num
)
;
i
+
=
2
)
{
if
(
num
%
i
==
0
)
{
return
false
;
}
}
return
true
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 14 min ago | 0.39 KB
Pastebin.ai - #1 Pastebin Alternative
PHP | 21 min ago | 0.83 KB
sort rectangle
Lisp | 27 min ago | 0.47 KB
Untitled
C | 30 min ago | 5.56 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 1 hour ago | 0.38 KB
Pici keon 36
Lua | 1 hour ago | 2.01 KB
Pici Utama
Lua | 1 hour ago | 2.01 KB
modelo_html
HTML | 1 hour ago | 9.25 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!