Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
02. Prime Number Checker
Spocoman
Jan 18th, 2022
(
edited
)
123
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
solve
(
num
)
{
let isPrime
=
num
===
2
||
num
===
3
||
num
===
5
||
num
===
7
||
num
%
2
!==
0
&&
num
%
3
!==
0
&&
num
%
5
!==
0
&&
num
%
7
!==
0
;
console.
log
(
isPrime
)
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ Account Leaks
JavaScript | 3 sec ago | 0.08 KB
Netflix Premium UHD Hits
JavaScript | 19 sec ago | 0.08 KB
MAKE $500 INSTANTLY
JavaScript | 32 sec ago | 0.08 KB
FREE 500$ GIFTCARDS⭐⭐⭐⭐ VF
Java | 35 sec ago | 0.13 KB
FREE BTC GUIDE
JavaScript | 44 sec ago | 0.08 KB
✅ PayPal Hits
JavaScript | 59 sec ago | 0.08 KB
Make $1200 in 15 minutes
JavaScript | 1 min ago | 0.08 KB
✅ MAKE $1200 IN 15 MIN
JavaScript | 1 min ago | 0.08 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!