Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
02. Prime Number Checker
Spocoman
Jan 18th, 2022
(
edited
)
124
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
Untitled
C++ | 1 min ago | 1.18 KB
Untitled
C++ | 14 min ago | 1.10 KB
Untitled
C++ | 38 min ago | 3.12 KB
PZ-B41-ModsAutomaticInstaller
PowerShell | 1 hour ago | 6.64 KB
JAVA Q
Java | 2 hours ago | 1.08 KB
TEST E22
Lua | 2 hours ago | 1.13 KB
2D StickPool Game C++ D2D VectorGFX (O3 AI...
C++ | 2 hours ago | 213.36 KB
wcfm_country_shipping_only_local_pickup
PHP | 2 hours ago | 0.82 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!